Hi,
I am trying to compile a library, based on the MCEvent library by Rene Brun.
The library do compile on Scientific Linux SL release 5.5 (Boron).
But when I move to Mac OSX (10.9.1) I have linking problems.
I receive:
///
ld: unknown option: -soname
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libMCEvent.so] Error 1
///
the I tried to use, in the Makefile,
SOFLAGS = -shared -Wl,-install_name,$(TARGET)
instead of
SOFLAGS = -shared -Wl,-soname,$(TARGET)
but the I get
////
Undefined symbols for architecture x86_64:
“TObject::SavePrimitive(std::__1::basic_ostream<char, std::__1::char_traits >&, char const*)”, referenced from:
vtable for PMHit in MCEvent.o
vtable for Ph in MCEvent.o
vtable for MCEvent in MCEvent.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1
////
How to do?
Thanks!
Maddalena