[Gate-users] Problems making LMF examples
Marc Chamberland
mchamber at physics.carleton.ca
Sun Jul 8 03:32:57 CEST 2007
Hi!
I'm having problems installing LMF v.3.0. I'm following the instructions
in LMF.pdf included with the source code. In LMF/, I can compile the
library correctly, I think. However, when I try to compile the examples, I
get the following output:
Maya:/Applications/lmf_v3.0/examples Marc$ make
gcc -I../includes/ -D_FILE_OFFSET_BITS=64 -c -o exempleMain_01.o
exempleMain_01.c
gcc -o EXE_01 exempleMain_01.o -I../includes/ -L../lib/ -lLMF
-L/Applications/root/lib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad
-lTree -lRint -lPostscript -lMatrix -lPhysics -lfreetype -lpthread -lm
-ldl
example 1 : EXE_01 ok...
gcc -I../includes/ -D_FILE_OFFSET_BITS=64 -c -o exempleMain_02.o
exempleMain_02.c
gcc -o EXE_02 exempleMain_02.o -I../includes/ -L../lib/ -lLMF
-L/Applications/root/lib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad
-lTree -lRint -lPostscript -lMatrix -lPhysics -lfreetype -lpthread -lm
-ldl
example 2 : EXE_02 ok...
gcc -I../includes/ -D_FILE_OFFSET_BITS=64 -c -o exempleMain_04.o
exempleMain_04.c
gcc -o EXE_04 exempleMain_04.o -I../includes/ -L../lib/ -lLMF
-L/Applications/root/lib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad
-lTree -lRint -lPostscript -lMatrix -lPhysics -lfreetype -lpthread -lm
-ldl
/usr/bin/ld: Undefined symbols:
std::ios_base::Init::Init()
std::ios_base::Init::~Init()
std::__throw_bad_alloc()
std::__throw_length_error(char const*)
operator delete[](void*)
operator delete(void*)
operator new[](unsigned long)
operator new(unsigned long)
___gxx_personality_v0
__Unwind_Resume
std::basic_istream<char, std::char_traits<char> >::operator>>(double&)
std::basic_istream<char, std::char_traits<char> >::operator>>(unsigned
long&)
std::basic_istream<char, std::char_traits<char> >::operator>>(unsigned
short&)
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> >&))
std::basic_ostream<char, std::char_traits<char> >::operator<<(double)
std::basic_ostream<char, std::char_traits<char> >::operator<<(int)
std::basic_ostream<char, std::char_traits<char> >::operator<<(unsigned
long)
std::basic_ostream<char, std::char_traits<char> >::operator<<(unsigned
short)
std::cin
std::cout
std::basic_ostream<char, std::char_traits<char> >& std::endl<char,
std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
>&)
std::basic_ostream<char, std::char_traits<char> >& std::operator<<
<std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
>&, char const*)
std::basic_istream<char, std::char_traits<char> >&
std::operator>><std::char_traits<char> >(std::basic_istream<char,
std::char_traits<char> >&, unsigned char&)
std::basic_ofstream<char, std::char_traits<char> >::open(char const*,
std::_Ios_Openmode)
std::basic_ofstream<char, std::char_traits<char> >::close()
std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream()
std::basic_ofstream<char, std::char_traits<char> >::~basic_ofstream()
std::basic_ostream<char, std::char_traits<char> >::operator<<(unsigned
long long)
TVersionCheck::TVersionCheck(int)
std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(char
const*, std::_Ios_Openmode)
std::basic_istream<char, std::char_traits<char> >::operator>>(int&)
std::basic_ifstream<char, std::char_traits<char> >::open(char const*,
std::_Ios_Openmode)
std::basic_ifstream<char, std::char_traits<char> >::close()
std::basic_ifstream<char, std::char_traits<char> >::is_open()
std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream()
std::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream()
collect2: ld returned 1 exit status
make: *** [EXE_04] Error 1
I see that Gate does generate the LMF output (I think), but I don't
know how to read them as I can't get the examples working. Can anyone help
me out?
For the record, I use the following:
Gate 3.1.1
Geant4 4.8.1.p02
CLHEP 2.0.2.3
root 5.12
LMF 3.0
I'm on a MacBook Pro Core 2 Duo.
I appreciate any help you can give me!
Marc Chamberland
Carleton University
More information about the Gate-users
mailing list