Hello there,
I created an empty project on the Power PMAC IDE, and created a .c file and .h file inside the C Language/Realtime Routines folder. Here is what my file structure looks like
Everything is just the default from creating an empty project, except the cappheader1.c and cappheader1.h files.
my cappheader1.h file looks like this:
#include "../Include/pp_proj.h"
#include <stdio.h>
#include <float.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
and my cappheader1.c file looks like this:
#define _PPScriptMode_
#define _PP_PROJ_HDR_
#include "../Include/pp_proj.h"
#include "cappheader1.h"
When I build, I get this error:
And a similar error happens with string.h and math.h, depending on which is being included first, but not with stdio.h, float.h or signal.h. There might be other libraries that might or might not build in this scenario, but these are just the libraries I have tried.
Why does this error happen? And what do I do if I need to include those libraries in my project?
Thanks in advance for your help!!