From: Endlisnis Newsgroups: comp.os.msdos.djgpp Subject: Re: Sorry, I messed up "Errors when compiling with gcc/gxx" this is the real one Date: Sat, 24 Apr 1999 19:13:40 -0300 Organization: BrunNet Lines: 42 Message-ID: <37224214.F233F263@unb.ca> References: <3721fe98 AT nemo DOT idirect DOT com> NNTP-Posting-Host: ftnts3c45.brunnet.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.04 [en] (Win95; U) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Dylan Trotter wrote: > c:\djgpp\tmp/ccciaqsg(.text+0xa0):C:\\WINDOWS\\DESKTOP\\VIDCLASS\\main.cpp: > undefined reference to `__eh_pc' > c:\djgpp\tmp/ccciaqsg(.text+0xa0):C:\\WINDOWS\\DESKTOP\\VIDCLASS\\main.cpp: > undefined reference to `__throw' > c:\djgpp\tmp/ccciaqsg(.text+0xa0):C:\\WINDOWS\\DESKTOP\\VIDCLASS\\main.cpp: > undefined reference to `terminate(void)' > c:\djgpp\tmp/ccciaqsg(.text+0xa0):C:\\WINDOWS\\DESKTOP\\VIDCLASS\\main.cpp: > undefined reference to `__rtti_si' > c:\djgpp\tmp/ccciaqsg(.text+0xa0):C:\\WINDOWS\\DESKTOP\\VIDCLASS\\main.cpp: > undefined reference to `__rtti_user' > > I checked and these references are calls. I assure you that I created no > such functions as "eh_pc()" and such, and I have no idea where these come > from. > > This happened when compiling with gcc, and I decided to try compiling with > gxx. It compiled fine. That's because "gxx" is the C++ compiler and "gcc" is the C compiler. > However, I changed the source to #include, and when it compiled > I got an ENOENT error saying that there was no such file as "streambuf.h". I > checked to see where it was and it was in "c:\djgpp\lang\cxx\". I have no > idea what is going on in both cases, and would appreciate any light anyone > could shed on this problem. That is probably because you don't have "Set LFN=Y" in your autoexec.bat. "streambuf.h" is more than 8 characters and needs long filenames enabled unless you install with a program that won't use lfn's. Either way, it's covered in the FAQ. -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT BrunNet DOT Net Endlisnis AT HotMail DOT com ICQ: 32959047