This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc-2.95 and -fhonor-std



I get a linker error if I try to use the -fhonor-std option.
I compiled the compiler with the standard options.
I get the error on Linux libc5 and glibc2 systems.

Sould I compile the compiler with a special option?

BTW. If I include the <rope> header with gcc-2.95.1
(Linux, libc5) I get a lot of warnings.

// x.cc
#include <exception>
int main(){std::exception e;}

eg++ -fhonor-std x.cc

/tmp/cc1H7VkX.o: In function `main':
/tmp/cc1H7VkX.o(.text+0xe): undefined reference to
`std::exception::exception(void)'
/tmp/cc1H7VkX.o(.text+0x2a): undefined reference to
`std::exception::~exception(void)'
/tmp/cc1H7VkX.o(.text+0x41): undefined reference to
`std::exception::~exception(void)'
/tmp/cc1H7VkX.o(.text+0x56): undefined reference to `std::terminate(void)'
collect2: ld returned 1 exit status


Ryszard Kabatek
Martin-Luther University Halle-Wittenberg, Department of Physical Chemistry
Geusaer Str. 88, 06217 Merseburg, Germany
Tel. +49 3461 46 2466 Fax. +49 3461 46 2129


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]