jon@ptrois:~$ x86_64-unknown-linux-gnu-gcc -o test test.cc
/tmp/cc7nSYfc.o(.text+0x19): In function `std::__verify_grouping(char const*, unsigned long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const& )':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const'
/tmp/cc7nSYfc.o(.text+0x70): In function `std::__verify_grouping(char const*, unsigned long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const& )':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned long) const'
/tmp/cc7nSYfc.o(.text+0xb3): In function `std::__verify_grouping(char const*, unsigned long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const& )':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned long) const'
/tmp/cc7nSYfc.o(.text+0xe3): In function `std::__verify_grouping(char const*, unsigned long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const& )':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned long) const'
/tmp/cc7nSYfc.o(.text+0x124): In function `main':
: undefined reference to `std::cout'
/tmp/cc7nSYfc.o(.text+0x129): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
/tmp/cc7nSYfc.o(.text+0x131): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >& )'
/tmp/cc7nSYfc.o(.text+0x136): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >& ))'
/tmp/cc7nSYfc.o(.text+0x165): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `std::ios_base::Init::Init()'
/tmp/cc7nSYfc.o(.text+0x192): In function `__tcf_0':
: undefined reference to `std::ios_base::Init::~Init()'
/tmp/cc7nSYfc.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
jon@ptrois:~$
jon@ptrois:~$
jon@ptrois:~$ which x86_64-unknown-linux-gnu-gcc
/opt/xcompile/gcc-3.4.4-glibc-2.3.2/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-gcc
jon@ptrois:~$
jon@ptrois:~$
jon@ptrois:~$ x86_64-unknown-linux-gnu-gcc -v
Reading specs from /opt/xcompile/gcc-3.4.4-glibc-2.3.2/x86_64-unknown-linux-gnu/lib/gcc/x86_64-unknown-linux-gnu/3.4.4/specs
Configured with: /usr/local/src/crosstool-0.38/build/x86_64-unknown-linux-gnu/gcc-3.4.4-glibc-2.3.2/gcc-3.4.4/configure --target=x86_64-unknown-linux-gnu --host=i686-host_pc-linux-gnu --prefix=/opt/xcompile/gcc-3.4.4-glibc-2.3.2/x86_64-unknown-linux-gnu --disable-multilib --with-sysroot=/opt/xcompile/gcc-3.4.4-glibc-2.3.2/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sys-root --with-local-prefix=/opt/xcompile/gcc-3.4.4-glibc-2.3.2/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/sys-root --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long
Thread model: posix
gcc version 3.4.4
jon@ptrois:~$
|