2015-04-06 33 views
0

我當我安裝CLHEP得到了一個錯誤,並鍵入「製作」這樣的:在安裝CLHEP的,我有這樣的錯誤:對建築x86_64的未定義符號:

Undefined symbols for architecture x86_64: 
    "CLHEP::HepVector::num_row() const", referenced from: 
     CLHEP::HepRandomVector::operator()() in RandomVector.cc.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[2]: *** [lib/libCLHEP-RandomObjects-2.1.4.1.dylib] Error 1 
make[1]: *** [RandomObjects/src/CMakeFiles/RandomObjects.dir/all] Error 2 
make[1]: *** Waiting for unfinished jobs.... 
[ 99%] Building CXX object RandomObjects/src/CMakeFiles/RandomObjectsS.dir/RandomVector.cc.o 
[ 99%] Built target ExceptionsS 
Linking CXX static library ../../lib/libCLHEP-RandomObjects-2.1.4.1.a 
[ 99%] Built target RandomObjectsS 
Linking CXX executable testInstanceRestore 
[ 99%] Built target testInstanceRestore 
make: *** [all] Error 2 

你能不能幫我找出怎麼了?

回答

0

退房的解決方案張貼here

--- CLHEP/Matrix/src/Vector.cc.orig 2014-04-01 09:21:25.000000000 +0200 

+++ CLHEP/Matrix/src/Vector.cc  2014-04-01 09:22:17.000000000 +0200 

@@ -114,9 +114,9 @@ 



// trivial methods 



-inline int HepVector::num_row() const {return nrow;} 

-inline int HepVector::num_size() const {return nrow;} 

-inline int HepVector::num_col() const { return 1; } 

+int HepVector::num_row() const {return nrow;} 

+int HepVector::num_size() const {return nrow;} 

+int HepVector::num_col() const { return 1; } 
相關問題