From: huuu DOT bbs AT titan DOT cc DOT ntu DOT edu DOT tw (ªü§g¥J) Newsgroups: comp.os.msdos.djgpp Subject: gpc problem Date: 26 Nov 1997 06:13:03 GMT Organization: Computer Science BBS Lines: 24 Message-ID: <3LfiAG$QSp@titan.cc.ntu.edu.tw> NNTP-Posting-Host: bbs AT 140 DOT 112 DOT 8 DOT 172 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 :)