From: "Sams" Newsgroups: comp.os.msdos.djgpp Subject: Newbie to DJGPP: linke error undefined reference to main Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: NNTP-Posting-Host: 129.42.208.186 X-Complaints-To: abuse AT prodigy DOT net X-Trace: newssvr10.news.prodigy.com 1033747474 ST000 129.42.208.186 (Fri, 04 Oct 2002 12:04:34 EDT) NNTP-Posting-Date: Fri, 04 Oct 2002 12:04:34 EDT Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: TSU[@IONFJSWSTD[FRXH^RXB AT ZYD@LLMIXQ\_EAODQZTWA]EDU]CS[GTBL[\YUWHANGYZEFNHFZPNLOBUNSS^_LGEVWEY\PHO AT YJSSWBBDT\PFD^ESBTXVCCMTD]JCJLE\_IJMFNRY]SWE[S[D_CNB__ZK^VGVCKHA[S AT COB^[@ZQSDFQ\BPMS AT DZVUKQTJL Date: Fri, 04 Oct 2002 16:04:34 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, I am new to DJGPP. I installed the DJGPP as descriped on the readme.1st file for Windows 2000 system. When I ran the go32-v2 I got this message: DPMI memory available: 75346 Kb DPMI swap space available: 0 kb When I compile a c program (gcc -c -Wall dsapi3.c ) it gives a warning but create an object file dsapi3.o When I link it (gcc -o dsapi3.dll dsapi3.o) I got these messages C:/djgpp/lib/crt0.o(.data+0xc2):crt0.s:undefined reference to 'main' C:/djgpp/lib/libc.a(crt1.o)(.text+0x404):crt1.c: undefined reference to 'main' collect2: ld returned 1 exit status Can someonne help me to get ahead of this link problem.