[SOLVED] PSPSDK - Includes only 1 header?
Posted: 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:
In this example, the functions, macros and variables from input.h will not exist.

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

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?
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"

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

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?