|
Boost-Build : |
Subject: [Boost-build] Compiling eror Asio Example
From: Gal Rubinstein (galrub_at_[hidden])
Date: 2009-06-05 05:59:50
Hello all,
Please, if this is the wrong group, tell me... this is a build issue, right?
System:
Win XP sp3,
Compiler mingw 32bit,
IDE: code::blocks
Using: libraries build using bjam.
while trying to compile the Timer-1 example I've got compilation/linking
error:
-------------- Build: Debug in AsioTut1 ---------------
mingw32-g++.exe -Wall -fexceptions -g -IC:\Dev\Checkout\Boostsvn -c
C:\Dev\AsioWS\AsioTut1\main.cpp -o obj\Debug\main.o
In file included from
C:/Dev/Checkout/Boostsvn/boost/asio/detail/win_iocp_io_service_fwd.hpp:24,
from C:/Dev/Checkout/Boostsvn/boost/asio/io_service.hpp:37,
from
C:/Dev/Checkout/Boostsvn/boost/asio/basic_io_object.hpp:20,
from
C:/Dev/Checkout/Boostsvn/boost/asio/basic_socket.hpp:24,
from
C:/Dev/Checkout/Boostsvn/boost/asio/basic_datagram_socket.hpp:25,
from C:/Dev/Checkout/Boostsvn/boost/asio.hpp:20,
from C:\Dev\AsioWS\AsioTut1\main.cpp:2:
C:/Dev/Checkout/Boostsvn/boost/asio/detail/socket_types.hpp:37:5: warning:
#warning Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately.
C:/Dev/Checkout/Boostsvn/boost/asio/detail/socket_types.hpp:38:5: warning:
#warning For example, add -D_WIN32_WINNT=0x0501 to the compiler command
line.
C:/Dev/Checkout/Boostsvn/boost/asio/detail/socket_types.hpp:39:5: warning:
#warning Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
mingw32-g++.exe -LC:\Dev\Boost\libs\date_time\build\gcc-mingw-3.4.5\debug
-LC:\Dev\Boost\libs\system\build\gcc-mingw-3.4.5\debug -o
bin\Debug\AsioTut1.exe obj\Debug\main.o
C:\Dev\Boost\libs\date_time\build\gcc-mingw-3.4.5\debug\boost_date_time-mgw3
4-d-1_40.lib
C:\Dev\Boost\libs\system\build\gcc-mingw-3.4.5\debug\boost_system-mgw34-d-1_
40.lib
C:\Dev\Boost\libs\thread\build\gcc-mingw-3.4.5\debug\link-static\threading-m
ulti\libboost_thread-mgw34-mt-d-1_40.lib
C:\Dev\Boost\libs\regex\build\gcc-mingw-3.4.5\debug\link-static\threading-mu
lti\libboost_regex-mgw34-mt-d-1_40.lib
C:\Dev\Boost\libs\serialization\build\gcc-mingw-3.4.5\debug\boost_serializat
ion-mgw34-d-1_40.lib
obj\Debug\main.o: In function
`ZNK5boost6system14error_category10equivalentEiRKNS0_15error_conditionE':
C:/Dev/Checkout/Boostsvn/boost/system/error_code.hpp:(.text$_ZN5boost4asio6d
etail12winsock_initILi2ELi0EE7do_initC1Ev[boost::asio::detail::winsock_init<
2, 0>::do_init::do_init()]+0x1f): undefined reference to `WSAStartup_at_8'
C:/Dev/Checkout/Boostsvn/boost/system/error_code.hpp:(.text$_ZN5boost4asio6d
etail10socket_ops6selectEiP6fd_setS4_S4_P7timevalRNS_6system10error_codeE[bo
ost::asio::detail::socket_ops::select(int, fd_set*, fd_set*, fd_set*,
timeval*, boost::system::error_code&)]+0xe4): undefined reference to
`select_at_20'
C:/Dev/Checkout/Boostsvn/boost/system/error_code.hpp:(.text$_ZN5boost4asio6d
etail10socket_ops13error_wrapperIiEET_S4_RNS_6system10error_codeE[int
boost::asio::detail::socket_ops::error_wrapper<int>(int,
boost::system::error_code&)]+0x13): undefined reference to
`WSAGetLastError_at_0'
C:/Dev/Checkout/Boostsvn/boost/system/error_code.hpp:(.text$_ZN5boost4asio6d
etail10socket_ops11clear_errorERNS_6system10error_codeE[boost::asio::detail:
:socket_ops::clear_error(boost::system::error_code&)]+0xf): undefined
reference to `WSASetLastError_at_4'
C:/Dev/Checkout/Boostsvn/boost/system/error_code.hpp:(.text$_ZN5boost4asio6d
etail12winsock_initILi2ELi0EE7do_initD1Ev[boost::asio::detail::winsock_init<
2, 0>::do_init::~do_init()]+0x7): undefined reference to `WSACleanup_at_0'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 5 seconds)
5 errors, 3 warnings
Any Ideas?
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk