X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "deckerben" Newsgroups: comp.os.msdos.djgpp References: <3ca78d87$0$364$9b622d9e AT news DOT freenet DOT de> Subject: Re: making dxe2gen with clio.rice.edu binaries -or- "undefined reference to 'operator'"? Date: Wed, 3 Apr 2002 18:50:23 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Lines: 29 Message-ID: <3cab2f26$0$152$9b622d9e@news.freenet.de> NNTP-Posting-Host: 213.7.10.67 X-Trace: 1017851687 news.freenet.de 152 213.7.10.67 X-Complaints-To: abuse AT freenet DOT de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >Hmm... dxe2gen.cpp is a C++ source file. The recommended method of >linking those is not the one shown above, but rather > >gpp -s -o dxe2gen.exe dxe2gen.o Both methods work. I can compile dxe2gen.cpp directly with gcc if I call libstdc++, or gpp will call it automaticly. Both versions seem to run OK. The GPP made version is 15% larger. Now I understand. GPP is a c++-flavoured compiler and GCC is a C-flavoured compiler. So libstdc++ is the standard c++ definitions library... I found all the info under %DJGPP%\..\gnu\gcc-3.04\libstdcxx ... explains all about it. I just need to have the time to read it all :-) The problem is that many packages that have not been updated do not understand the need to link with this library. Many makefiles just call gcc for everything. Is there a way to configure GCC to link with libstdc++ automaticly or send the code to GPP if needed? If this should be he case already, it appearantly did not work in my case... B