c++ - gcc 4.8 linker error during linking boost thread library -


i have compiled boost library myself using g++4.8 compilation finished success. located in ~/bin/boost. after compilation files located in /users/$(user)/bin/boost/stage/lib/

below necessary make parts:

cc=g++-4.8 ld=g++-4.8  boost_lib_path=/users/$(user)/bin/boost/stage/lib/ boost_header_path=/users/$(user)/bin/boost/  lflags=-l$(boost_lib_path) -lboost_thread  release: $(obj)         $(ld) $(obj) obj/main.o $(lflags) -o $(release_name)  

everything goes ok during compilation linking process fail. errors same:

ndefined symbols architecture x86_64:   "boost::system::system_category()", referenced from:       __static_initialization_and_destruction_0(int, int) 

i have read : attempting use boost.filesystem doesn't seem link? c++ / boost: undefined symbols in example? , many others still did not find solution.

i have no idea problem, have change order of linking, try link directly thread library still same result. problems occur during compilation of https://github.com/dbedla/snake-cpp11 under mac os x 10.8.4 (i have modify makefile)

i grateful suggestion how solve problem.

sorry english :(

you need add -lboost_system after had -lboost_thread.


Comments

Popular posts from this blog

ruby on rails - Is it the correct way to implement belongs_to relation with factory girl? -

geolocation - Windows Phone 8 - Keeping background location tracking active beyond four hours -

Uncaught TypeError: Cannot read property 'parentNode' of null javascript -