Mail Archives: djgpp/1997/11/26/02:48:55
I tried to compile a simple pascal program with gpc, but I got
these error messages:
e:\djgpp\test\misc>gpc txtfile.pas -c
e:\djgpp\test\misc>gpc txtfile.o
_main.c(.text+0x1a): undefined reference to `djgpp_last_ctor'
_main.c(.text+0x1f): undefined reference to `djgpp_first_ctor'
_main.c(.text+0x2f): undefined reference to `djgpp_first_ctor'
exit.c(.text+0x29): undefined reference to `djgpp_last_dtor'
exit.c(.text+0x2e): undefined reference to `djgpp_first_dtor'
exit.c(.text+0x3f): undefined reference to `djgpp_first_dtor'
-----------------------
This is my program:
----------------------
program test;
begin
writeln('Hello World!');
end.
-------------------------
What am I supposed to do to have my codes compiled and linked?
Thanks in advance :)
- Raw text -