From: Daniel M. <dan...@gm...> - 2012-05-31 20:15:40
|
While building repast-hpc under Ubuntu 12.04, zombies and rumors both failed to compile with an error like: libtool: link: mpic++ -g -O2 -o .libs/zombie_model zombie_model-Human.o zombie_model-Zombie.o zombie_model-ZombieObserver.o zombie_model-main.o zombie_model-InfectionSum.o -L/usr/local/lib ../repast_hpc/.libs/librepast_hpc-1.0.1.so ../relogo/.libs/librelogo-1.0.1.so -lboost_mpi-mt -lboost_serialization-mt -lnetcdf_c++ -lnetcdf -lmpi -pthread /usr/bin/ld: zombie_model-Human.o: undefined reference to symbol 'boost::system::system_category()' /usr/bin/ld: note: 'boost::system::system_category()' is defined in DSO /usr/lib/libboost_system.so.1.46.1 so try adding it to the linker command line /usr/lib/libboost_system.so.1.46.1: could not read symbols: Invalid operation Adding $(BOOST_SYSTEM_LIBS) to zombie_model_LDADD in src/zombie/Makefile.in and rumor_model_LDADD in src/rumor/Makefile.in seems to have fixed the problem. DLM |