X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <44b4be6e$0$493$cc7c7865@news.luth.se> From: Martin Str|mberg Subject: Re: undefined reference Newsgroups: comp.os.msdos.djgpp References: <1152663563 DOT 566365 DOT 26490 AT i42g2000cwa DOT googlegroups DOT com> <200607120034 DOT k6C0YMxe009932 AT envy DOT delorie DOT com> User-Agent: tin/1.4.6-20020816 ("Aerials") (UNIX) (NetBSD/1.6Q (alpha)) Date: 12 Jul 2006 09:18:38 GMT Lines: 16 NNTP-Posting-Host: speedy.ludd.ltu.se X-Trace: 1152695918 news.luth.se 493 130.240.16.13 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com DJ Delorie wrote: >> G:\TEMP/cc5nUebF.o(.eh_frame+0x11):HELLO2.C: undefined reference to >> `___gxx_personality_v0' >> collect2: ld returned 1 exit status > Did you compile with gcc (the C compiler) or gxx/g++ (the C++ compiler) ? Wouldn't that filename make even gcc to compile it as C++. You need to name your C files so they end with a "c" (not "C"). Right, MartinS