Compilation Error when including MathLib

Compilation Error when including MathLib

Post by Bert Ruiterkam » Thu, 15 Feb 2001 21:11:45



I added Mathlib to a project in developement for PalmOS 3.5

After changing the #include pilot.h to the new include libraries
I was still unable to compile receiving the following error:

/prc-tools/H-i586-cygwin32/m68k-palmos/lib/gcrt0.o(.text+0x6a):crt0.c:
undefined reference to `PilotMain'
/prc-tools/H-i586-cygwin32/m68k-palmos/lib/libcrt.a(gdbstub.o)(.text+0x48):g
dbstub.c: undefined reference to `PilotMain'
collect2: ld returned 1 exit status
LandingDistance.o: In function `StartApplication':
LandingDistance.c:285: undefined reference to `MathLibRef'
LandingDistance.c:287: undefined reference to `MathLibRef'
LandingDistance.c:289: undefined reference to `MathLibRef'
LandingDistance.o: In function `StopApplication':
LandingDistance.c:304: undefined reference to `MathLibRef'
LandingDistance.c:307: undefined reference to `MathLibRef'
collect2: ld returned 1 exit status
/PalmDev/PRC-TO~1/H-I586~1/BIN/M68K-~13.EXE: can't open `LandingDistance':
No such file or directory
/PalmDev/PRC-TO~1/H-I586~1/BIN/BUILD-~1.EXE: can't read raw file `*.grc': No
such file or directory
File not found

My environment is:
PRC-Tools 2.0
Cygnus Cygwin 20 GCC
Pilrc 2.7b
SDK 3.5
VFDIDE

Any idee's what this error can be and how to solve this?

Thanks
Bert

 
 
 

Compilation Error when including MathLib

Post by Lyman Copp » Fri, 16 Feb 2001 16:01:01


Sounds like the compiler is not seeing the directory with your code, or you have
not defined a "PilotMain()" function in your main source file.
-Chip

> I added Mathlib to a project in developement for PalmOS 3.5

> After changing the #include pilot.h to the new include libraries
> I was still unable to compile receiving the following error:

> /prc-tools/H-i586-cygwin32/m68k-palmos/lib/gcrt0.o(.text+0x6a):crt0.c:
> undefined reference to `PilotMain'
> /prc-tools/H-i586-cygwin32/m68k-palmos/lib/libcrt.a(gdbstub.o)(.text+0x48):g
> dbstub.c: undefined reference to `PilotMain'
> collect2: ld returned 1 exit status
> LandingDistance.o: In function `StartApplication':
> LandingDistance.c:285: undefined reference to `MathLibRef'
> LandingDistance.c:287: undefined reference to `MathLibRef'
> LandingDistance.c:289: undefined reference to `MathLibRef'
> LandingDistance.o: In function `StopApplication':
> LandingDistance.c:304: undefined reference to `MathLibRef'
> LandingDistance.c:307: undefined reference to `MathLibRef'
> collect2: ld returned 1 exit status
> /PalmDev/PRC-TO~1/H-I586~1/BIN/M68K-~13.EXE: can't open `LandingDistance':
> No such file or directory
> /PalmDev/PRC-TO~1/H-I586~1/BIN/BUILD-~1.EXE: can't read raw file `*.grc': No
> such file or directory
> File not found

> My environment is:
> PRC-Tools 2.0
> Cygnus Cygwin 20 GCC
> Pilrc 2.7b
> SDK 3.5
> VFDIDE

> Any idee's what this error can be and how to solve this?

> Thanks
> Bert