Hi All,
Im having a some problems with creating a .lib file with a struct in it. I am getting this error
Undefined (but used) global label sunTracking
I googled the error and good a few posts that seemed hopeful, but still couldn’t figure it out. I read through the manual and believe i am doing everything properly already and have other .lib files working fine. Any help would be appreciated.
SUNPOSITION.lib
#indef SUNPOSITION
#define SUNPOSITION
/*** BeginHeader sunPosition */
typedef struct sunStruct{
float altitude;
float azimuth;
}SunPosition;
void sunTracking(SunPosition* pos);
/*** EndHeader */
void sunTracking(SunPosition* pos){
. . .
}
MyProgram.C
#use SUNPOSITION.lib
void main()
{
SunPosition pos;
sunTracking(&pos);
printf ("altitude is %f
", pos.altitude);
printf ("azmuth is %f
", pos.azimuth);
}