Message: Compilation error under MACOSX 10.9 geant4.10 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Compilation error under MACOSX 10.9 geant4.10 

Forum: Installation and Configuration
Date: 12 Dec, 2013
From: Ildefonso Leon <Ildefonso Leon>

Dear all

I have compiled and installed geant4.10 under mac osx 10.9 successfully. However, when I try to compile the most simple example like exampleb1, I have the following error:

Making dependency for file exampleB1.cc ...
Making dependency for file src/B1SteppingAction.cc ...
Making dependency for file src/B1RunAction.cc ...
Making dependency for file src/B1Run.cc ...
Making dependency for file src/B1PrimaryGeneratorAction.cc ...
Making dependency for file src/B1EventAction.cc ...
Making dependency for file src/B1DetectorConstruction.cc ...
Making dependency for file src/B1ActionInitialization.cc ...
Compiling B1ActionInitialization.cc ...
Compiling B1DetectorConstruction.cc ...
Compiling B1EventAction.cc ...
Compiling B1PrimaryGeneratorAction.cc ...
Compiling B1Run.cc ...
Compiling B1RunAction.cc ...
Compiling B1SteppingAction.cc ...
Creating shared library /Users/ileonmon/geant4_workdir/tmp/Darwin-clang/exampleB1/libexampleB1.dylib ...
Compiling exampleB1.cc ...
Using global libraries ...
Linking exampleB1
Undefined symbols for architecture x86_64:
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__init(char const*, unsigned long)", referenced from:
      _main in exampleB1.o
      G4VisExecutive::RegisterGraphicsSystems() in exampleB1.o
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__init(char const*, unsigned long, unsigned long)", referenced from:
      _main in exampleB1.o
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::append(char const*, unsigned long)", referenced from:
      _main in exampleB1.o
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      _main in exampleB1.o
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()", referenced from:
      _main in exampleB1.o
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()", referenced from:
      _main in exampleB1.o
      G4VisExecutive::RegisterGraphicsSystems() in exampleB1.o
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::operator=(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      G4VisExecutive::RegisterGraphicsSystems() in exampleB1.o
  "std::terminate()", referenced from:
      ___clang_call_terminate in exampleB1.o
  "vtable for __cxxabiv1::__si_class_type_info", referenced from:
      typeinfo for G4VisExecutive in exampleB1.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "operator delete(void*)", referenced from:
      _main in exampleB1.o
      G4VisExecutive::RegisterGraphicsSystems() in exampleB1.o
      G4VisExecutive::~G4VisExecutive() in exampleB1.o
      G4VisExecutive::RegisterModelFactories() in exampleB1.o
  "operator new(unsigned long)", referenced from:
      _main in exampleB1.o
      G4VisExecutive::RegisterGraphicsSystems() in exampleB1.o
      G4VisExecutive::RegisterModelFactories() in exampleB1.o
  "___cxa_begin_catch", referenced from:
      ___clang_call_terminate in exampleB1.o
  "___gxx_personality_v0", referenced from:
      _main in exampleB1.o
      G4VisExecutive::RegisterGraphicsSystems() in exampleB1.o
      G4VisExecutive::~G4VisExecutive() in exampleB1.o
      G4VisExecutive::RegisterModelFactories() in exampleB1.o
      Dwarf Exception Unwind Info (__eh_frame) in exampleB1.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Users/ileonmon/geant4_workdir/bin/Darwin-clang/exampleB1] Error 1

If you have any idea on how to solve this error, I will appreciate your help.

Regards.

Ildefonso.

 Add Message Add Message
to: "Compilation error under MACOSX 10.9 geant4.10"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]