Forum rules: Forum rule Nº 15 is strictly enforced in this subforum.
#418671 by No;HURRY
Mon Jun 05, 2017 11:22 am
Hello everyone!.

I've been trying to create a seperated callback & input header, However, whenever I include both in my main.c and compile the code, it says that the functions in the second included header do not exist.

Example1:
Code: Select all#include <psp headers here>
#include "common/callback.h"
#include "common/input.h"

In this example, the functions, macros and variables from input.h will not exist.
Image

Example2:
Code: Select all#include <psp headers here>
#include "common/input.h"
#include "common/callback.h"

...and it's the same for callback.h, except that it does compile (but not work for obvious reasons).
Image

I can confirm that my makefile isn't the problem here; both input.h & callback.h do work when only one of them is included.

Thus, I've been wondering if this is a known limitation, if there is a way to work around it without the need of a mega header, or if I did just something plain stupid?.

Do you guys have any ideas?
Advertising
Attachments
(2.96 KiB) Downloaded 7 times
Last edited by No;HURRY on Wed Jun 07, 2017 8:13 am, edited 1 time in total.
#418722 by No;HURRY
Wed Jun 07, 2017 8:12 am
I was just writing **** code as usual :P. The problem is solved.
Advertising

Who is online

Users browsing this forum: No registered users and 1 guest