www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/24/12:50:27

From: "Dylan Trotter" <trotterd AT idirect DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Sorry, I messed up "Errors when compiling with gcc/gxx" this is the real one
Date: Sat, 24 Apr 1999 13:24:30 -0400
Lines: 38
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: ts6-1o-27.idirect.com
Message-ID: <3721fe98@nemo.idirect.com>
X-Trace: 24 Apr 1999 13:25:44 -0400, ts6-1o-27.idirect.com
Organization: via Internet Direct
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I recently learned C++ after previously knowing C, and I wanted to convert
many library functions which I had created for C into C++ classes.

All was good until I went to compile the fist one with the command line:

C:\djgpp\bin\gcc.exe C:\WINDOWS\Desktop\VidClass\main.cpp -o
C:\WINDOWS\Desktop\VidClass\main.exe -lstdcxx

when I got errors such as:

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.

However, I changed the source to #include<iostream.h>, 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.

Thanks very much,
    Dylan Trotter


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019