This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ export keyword
- To: patha at ida dot liu dot se (Patrik Hagglund)
- Subject: Re: C++ export keyword
- From: Carlo Wood <carlo at runaway dot xs4all dot nl>
- Date: Tue, 15 Sep 1998 17:50:03 +0200 (CEST)
- Cc: egcs at cygnus dot com (egcs at cygnus dot com)
| Then I tried -frepo, but collect2 dumped core (egcs-1.1a, SPARC, SunOS
| 5.6).
|
| g++ -fno-exceptions -O2 -frepo -Wall -c main.ii
| g++ -fno-exceptions -O2 -frepo -Wall -c unix.ii
| g++ main.o unix.o -o main
| g++: Internal compiler error: program collect2 got fatal signal 11
|
| /Patrik H=E4gglund
On
- Linux, kernel 2.1.115
- RedHat release 5.1 (Manhattan)
- glibc-2.0.7-13
- glibc-devel-2.0.7-13
- binutils-2.9.1.0.7-1
With egcs-1.1b, I get no ICE but instead:
~/tmp/test>make 2> troep
g++ -fno-exceptions -O2 -frepo -Wall -c main.ii
g++ -fno-exceptions -O2 -frepo -Wall -c unix.ii
g++ main.o unix.o -o main
main.o: In function `main':
main.o(.text+0x1b): undefined reference to `char * mopen<char>(char const *, int)'
main.o(.text+0x2c): undefined reference to `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::nilRep'
main.o(.text+0x34): undefined reference to `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::nilRep'
main.o(.text+0x39): undefined reference to `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::Rep::clone(void)'
main.o(.text+0x44): undefined reference to `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::nilRep'
main.o(.text+0x49): undefined reference to `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::nilRep'
main.o(.text+0x9c): undefined reference to `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::replace(unsigned int, unsigned int, char const *, unsigned int)'
main.o(.text+0x113): undefined reference to `__default_alloc_template<false, 0>::free_list'
main.o(.text+0x11c): undefined reference to `__default_alloc_template<false, 0>::free_list'
collect2: ld returned 1 exit status
make: *** [main] Error 1
--
Carlo Wood <carlo@runaway.xs4all.nl>