[CMake] CMake problems OSX 10.4 64-bit

jonathan grimm flymolo at gmail.com
Mon Jun 5 19:02:38 EDT 2006


This program is failing with the errors below.  A corresponding
c(stdio) program works.
This started on the vtkusers list.  I am getting compile errors with VTK kwsys.
Any suggestions?
this is with -arch ppc64

PROJECT (Hello64)

ADD_EXECUTABLE(Hello64 hello.c)
ADD_EXECUTABLE(HelloCXX64 hello.cxx)

#include <iostream>
using namespace std;
int main(int argc,char** argv){
   cout << "Hello world!" << endl;
   return 0;
}


ONHBL-Storage:/Volumes/RAID1/source/hello64 jonathan$ make
Linking CXX executable HelloCXX64
can't resolve symbols:
  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 hello.o
  std::ios_base::Init::Init(), referenced from:
      __static_initialization_and_destruction_0(int, int)in hello.o
  std::ios_base::Init::~Init(), referenced from:
      __static_initialization_and_destruction_0(int, int)in hello.o
  std::cout, referenced from:
      _main in hello.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 hello.o
  std::basic_ostream<char, std::char_traits<char> >& std::operator<<
<std::char_traits<char> >(std::basic_ostream<char,
std::char_traits<char> >&, char const*), referenced from:
      _main in hello.o
  ___gxx_personality_v0, referenced from:
      EH_frame1 in hello.o
ld64 failed: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [HelloCXX64] Error 1
make[1]: *** [CMakeFiles/HelloCXX64.dir/all] Error 2
make: *** [all] Error 2


--
Sometimes it's hard to tell the dancer from the dance - Corwin in CoC


-- 
Sometimes it's hard to tell the dancer from the dance - Corwin in CoC


More information about the CMake mailing list