Boost logo

Boost Users :

Subject: Re: [Boost-users] Simple serial port demonstration with boost asio asynchronous I/O
From: jhodapp (james.hodapp_at_[hidden])
Date: 2011-08-27 10:53:00


Any reason why you can't use Ubuntu's package for Boost? Do you need the latest version of Boost? If you use the Ubuntu packages, you should have no issues as I was successfully able to run that example on my Ubuntu installation.

On Aug 27, 2011, at 9:55 AM, drwho [via Boost] wrote:

> New to boost. (Ubuntu 10.10) Downloaded boost 1.47 source. Built it with ./bootstrap.sh and ./b2 Keep getting linker failure, undefined reference to `boost::system::get_system_category() in my QT app. Tried your serial example from bash, same thing....
>
> drwho_at_drwho-desktop:~/Projects/prog$ g++ -Lboost/stage/lib -lboost_system -lboost_thread serial.cpp -o test
> /tmp/ccvTv9iN.o: In function `__static_initialization_and_destruction_0(int, int)':
> serial.cpp:(.text+0x3cf): undefined reference to `boost::system::get_system_category()'
> serial.cpp:(.text+0x3d9): undefined reference to `boost::system::get_generic_category()'
> serial.cpp:(.text+0x3e3): undefined reference to `boost::system::get_generic_category()'
> serial.cpp:(.text+0x3ed): undefined reference to `boost::system::get_generic_category()'
> serial.cpp:(.text+0x3f7): undefined reference to `boost::system::get_system_category()'
> /tmp/ccvTv9iN.o: In function `boost::system::error_code::error_code()':
> serial.cpp:(.text._ZN5boost6system10error_codeC1Ev[boost::system::error_code::error_code()]+0x10): undefined reference to `boost::system::get_system_category()'
> /tmp/ccvTv9iN.o: In function `boost::asio::error::get_system_category()':
> serial.cpp:(.text._ZN5boost4asio5error19get_system_categoryEv[boost::asio::error::get_system_category()]+0x7): undefined reference to `boost::system::get_system_category()'
> collect2: ld returned 1 exit status
>
>
> If you reply to this email, your message will be added to the discussion below:
> http://boost.2283326.n4.nabble.com/Simple-serial-port-demonstration-with-boost-asio-asynchronous-I-O-tp2582657p3773016.html
> To unsubscribe from Simple serial port demonstration with boost asio asynchronous I/O, click here.

--
View this message in context: http://boost.2283326.n4.nabble.com/Simple-serial-port-demonstration-with-boost-asio-asynchronous-I-O-tp2582657p3773084.html
Sent from the Boost - Users mailing list archive at Nabble.com.


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