Hi, all.
I'm having trouble getting the grx20.pas unit to compile. If I just do a compile (gpc -g-c grx20.pas -o grx20.o), there are no errors. But when I attempt to Make it (this is in RHIDE), I see: compiling: c:\gpc\pascal\grx20.pas crt0.s: undefined reference to 'main' crt1.c: undefined reference to 'main' there were some errors
Now I can't find any crt0.s or crt1.c files anywhere on the hard drive, so I don't think that's the problem...
Is this a compiler bug, or can I get around it by changing some compiler flags or a few lines in the code? By the way, I'm using RHIDE 1.4, and the new beta gpc binary downloaded just a month ago.
Any help would be appreciated. Toby Ewing ewing@iastate.edu
Robert P. Ewing a écrit:
Hi, all.
I'm having trouble getting the grx20.pas unit to compile. If I just do a compile (gpc -g-c grx20.pas -o grx20.o), there are no errors. But when I attempt to Make it (this is in RHIDE), I see: compiling: c:\gpc\pascal\grx20.pas crt0.s: undefined reference to 'main' crt1.c: undefined reference to 'main' there were some errors
Now I can't find any crt0.s or crt1.c files anywhere on the hard drive, so I don't think that's the problem...
You have to issue compile (alt F9) and not make (F9). with make rhide tries to create an executable grx20.exe !