Advertising (This ad goes away for registered users. You can Login or Register)

Heads up! Humble THQ Nordic Playstation Bundle 2 is ongoing. Pay what you want for $269 worth of PS4 games. (Affiliate link)

[SOLVED] PSPSDK - Includes only 1 header?

Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Post Reply
No;HURRY
Posts: 2
Joined: Mon Jun 05, 2017 10:54 am

[SOLVED] PSPSDK - Includes only 1 header?

Post 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
project.zip
(2.96 KiB) Downloaded 42 times
Last edited by No;HURRY on Wed Jun 07, 2017 8:13 am, edited 1 time in total.

No;HURRY
Posts: 2
Joined: Mon Jun 05, 2017 10:54 am

Re: PSPSDK - Includes only 1 header?

Post by No;HURRY » Wed Jun 07, 2017 8:12 am

I was just writing **** code as usual :P. The problem is solved.
Advertising

Post Reply

Return to “Programming and Security”