Hi, did you find the solution? would you please share it?
On Wednesday, June 27, 2012 10:22:08 PM UTC+4:30, Xin wrote:Hello everyone,I installed OMNeT++ 4.1 on Mac OS X 10.7, and now I am compiling OverSim. But, I have got this error:---------------------------------------------------------------------------------------------ld: warning: directory not found for option '-L/sw/lib'
ld: warning: ignoring file /usr/local/lib/libgmp.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
"___gmpn_set_str", referenced from:
OverlayKey::sha1(BinaryValue const&) in OverlayKey.o
OverlayKey::OverlayKey(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)in OverlayKey.o
OverlayKey::OverlayKey(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)in OverlayKey.o
"___gmpn_sub_n", referenced from:
OverlayKey::operator-=(OverlayKey const&)in OverlayKey.o
"___gmpn_add_n", referenced from:
OverlayKey::operator+=(OverlayKey const&)in OverlayKey.o
"___gmpn_lshift", referenced from:
OverlayKey::operator<<(unsigned int) constin OverlayKey.o
"___gmpn_rshift", referenced from:
OverlayKey::operator>>(unsigned int) constin OverlayKey.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
make: *** [../out/gcc-debug/src/OverSim] Error 1
---------------------------------------------------------------------------------------------I guess the error is because of "libgmp". When I was installing OverSim, I found the "Install instruction" said
- For Mac OS X 10.5
- Xcode 3.x and Fink (includes libgmp)
- After installation of Fink open a terminal and install libgmp with:
sudo apt-get install libgmp3-devbut, I am using Mac OS X 10.7, and I am not able to find "libgmp3-dev". Do you know how to solve this problem?Thank you in advance!!Best regards,Xin