Next gcc46 Problem

Johannes Ruscheinski ruschein at gmail.com
Tue Jul 20 10:58:52 PDT 2010


After finally successfully installing gcc46 and compiling a tiny test
program with

gcc-mp-4.6 -std=gnu++0x AutoTest.cc

I get:

Undefined symbols:
  "std::ios_base::Init::Init()", referenced from:
      __static_initialization_and_destruction_0(int, int) in ccyAO1Lq.o
  "std::ios_base::Init::~Init()", referenced from:
      __static_initialization_and_destruction_0(int, int) in ccyAO1Lq.o
  "std::basic_ostream<char, std::char_traits<char> >& std::endl<char,
std::char_traits<char> >(std::basic_ostream<char,
std::char_traits<char> >&)", referenced from:
      _main in ccyAO1Lq.o
  "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> >&))", referenced
from:
      _main in ccyAO1Lq.o
  "std::basic_ostream<char, std::char_traits<char>
>::operator<<(int)", referenced from:
      _main in ccyAO1Lq.o
  "std::cout", referenced from:
      _main in ccyAO1Lq.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

How can I resolve this?
-- 
Johannes

Obligatory current favourite quotes:

"Religion is regarded by the common people as true, by the wise as
false, and by the rulers as useful".
 -- Seneca
"I have more confidence in the methods of science, based on the amazing
record of science and its ability over the centuries to answer
unanswerable questions, than I do in the methods of faith (what are they?)."
 -- David J. Gross "Physics Nobel Laureate"

"Atheism is a religion to the same extent that not collecting stamps is a
 hobby."
 -- seen on Slashdot.org


More information about the macports-users mailing list