Page 1 of 1

[SOLVED] PSPSDK - Includes only 1 header?

Posted: Mon Jun 05, 2017 11:22 am
by No;HURRY
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?

Re: PSPSDK - Includes only 1 header?

Posted: Wed Jun 07, 2017 8:12 am
by No;HURRY
I was just writing **** code as usual :P. The problem is solved.