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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
> 
> 


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux