|
Boost Users : |
Subject: [Boost-users] Can't compile boost::asio
From: Daniel V (dann.vd_at_[hidden])
Date: 2010-03-08 15:28:05
Hi,
I'm trying to compile the client example found in
http://www.boost.org/doc/libs/1_42_0/doc/html/boost_asio/tutorial/tutdaytime1/src.html(boost::asio
tutorials), but I get the following errors:
g++ -o dist/Debug/GNU-MacOSX/socketclient build/Debug/GNU-MacOSX/main.o
Undefined symbols:
"boost::system::get_system_category()", referenced from:
boost::asio::error::get_system_category() in main.o
boost::system::error_code::error_code()in main.o
__static_initialization_and_destruction_0(int, int)in main.o
__static_initialization_and_destruction_0(int, int)in main.o
"boost::system::get_generic_category()", referenced from:
__static_initialization_and_destruction_0(int, int)in main.o
__static_initialization_and_destruction_0(int, int)in main.o
__static_initialization_and_destruction_0(int, int)in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [dist/Debug/GNU-MacOSX/socketclient] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 2s)
Any idea why this is failing?
Thanks
Dann
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net