Forcing gcc to compile c++ programs...?

Justin Miller millerj@wam.umd.edu
Mon Sep 15 20:05:00 GMT 2003


Ok, that seemed to allow it to compile, but not to link. These are just
a sample of the errors I'm getting. Any clue??

Justin

/tmp/ccBFO83w.o(.text+0x22): In function `main':
: undefined reference to `std::allocator<char>::allocator[in-charge]()'
/tmp/ccBFO83w.o(.text+0x3d): In function `main':
: undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::basic_string[in-charge](char const*, std::allocator<char> const&)'
/tmp/ccBFO83w.o(.text+0x5d): In function `main':
: undefined reference to `std::allocator<char>::~allocator
[in-charge]()'

On Mon, 2003-09-15 at 15:58, Eljay Love-Jensen wrote:
> Hi Justin,
> 
> For instance:
> gcc -x c++ foo.whatever
> 
> --Eljay
> 
> 



More information about the Gcc-help mailing list