Boost logo

Boost :

Subject: [boost] getting errors whti boost.
From: ch.asad_at_[hidden]
Date: 2009-12-19 11:12:55


Hi I am getting errors when i ininclude boost header file in my project.

my progrm is running fine. I want ot use boost asio in my program. But when
just write "include<boost/asio>" or any other header fie of boost in my
program i am getting below errors. It just started all of a suddden before
that it was working fine. I am tring it with Eclpse and MinGW.Please also
guide me how t setup boost for Visual C++.net 9.0. I have tried boost_1_38_0
and boost_1_41_0
 but same problem.

i am getting the following errors on eclipse.

Thanks in advance,
-Asad

Description Resource Path Location Type
(Errors 5)
D:/boost/boost_1_38_0/boost/system/error_code.hpp undefined reference to
`boost::system::get_generic_category()' test project 206 C/C++ Problem
D:/boost/boost_1_38_0/boost/system/error_code.hpp undefined reference to
`boost::system::get_generic_category()' test project 211 C/C++ Problem
D:/boost/boost_1_38_0/boost/system/error_code.hpp undefined reference to
`boost::system::get_generic_category()' test project 212 C/C++ Problem
D:/boost/boost_1_38_0/boost/system/error_code.hpp undefined reference to
`boost::system::get_system_category()' test project 205 C/C++ Problem
D:/boost/boost_1_38_0/boost/system/error_code.hpp undefined reference to
`boost::system::get_system_category()' test project 213 C/C++ Problem
(Warnings 9)
Description Resource Path Location Type
D:/boost/boost_1_38_0/boost/asio/detail/socket_types.hpp #warning Assuming
_WIN32_WINNT=0x0501 (i.e. Windows XP target). test project 39 C/C++ Problem
D:/boost/boost_1_38_0/boost/asio/detail/socket_types.hpp #warning For
example, add -D_WIN32_WINNT=0x0501 to the compiler command line. test
project 38 C/C++ Problem
D:/boost/boost_1_38_0/boost/asio/detail/socket_types.hpp #warning Please
define _WIN32_WINNT or _WIN32_WINDOWS appropriately. test project 37 C/C++
Problem
D:/boost/boost_1_38_0/boost/date_time/filetime_functions.hpp left shift
count >= width of type test project 101 C/C++ Problem
Invalid project path: Include path not found
(C:\MinGW\include\c++\4.3.2-dw2). test project pathentry Path Entry Problem
Invalid project path: Include path not found
(C:\MinGW\include\c++\4.3.2-dw2\backward). test project pathentry Path
Entry Problem
Invalid project path: Include path not found
(C:\MinGW\include\c++\4.3.2-dw2\i686-pc-mingw32). test project pathentry
Path Entry Problem
Invalid project path: Include path not found
(C:\MinGW\lib\gcc\i686-pc-mingw32\4.3.2-dw2\include-fixed). test project
pathentry Path Entry Problem
Invalid project path: Include path not found
(C:\MinGW\lib\gcc\i686-pc-mingw32\4.3.2-dw2\include). test project
pathentry Path Entry Problem

And on the console it shows like :

**** Internal Builder is used for build ****

g++ -ID:\boost\boost_1_38_0 -O0 -g3 -Wall -c -fmessage-length=0 -osrc\test
project.o ..\src\test project.cpp

In file included from
D:/boost/boost_1_38_0/boost/asio/detail/win_iocp_io_service_fwd.hpp:24,

from D:/boost/boost_1_38_0/boost/asio/io_service.hpp:37,

from D:/boost/boost_1_38_0/boost/asio/basic_io_object.hpp:20,

from D:/boost/boost_1_38_0/boost/asio/basic_socket.hpp:24,

from D:/boost/boost_1_38_0/boost/asio/basic_datagram_socket.hpp:25,

from D:/boost/boost_1_38_0/boost/asio.hpp:20,

from ..\src\test project.cpp:12:

D:/boost/boost_1_38_0/boost/asio/detail/socket_types.hpp:37:5: warning:
#warning Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately.

D:/boost/boost_1_38_0/boost/asio/detail/socket_types.hpp:38:5: warning:
#warning For example, add -D_WIN32_WINNT=0x0501 to the compiler command
line.

D:/boost/boost_1_38_0/boost/asio/detail/socket_types.hpp:39:5: warning:
#warning Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).

In file included from
D:/boost/boost_1_38_0/boost/date_time/microsec_time_clock.hpp:23,

from
D:/boost/boost_1_38_0/boost/date_time/posix_time/posix_time_types.hpp:11,

from D:/boost/boost_1_38_0/boost/asio/detail/select_reactor.hpp:25,

from D:/boost/boost_1_38_0/boost/asio/impl/io_service.ipp:27,

from D:/boost/boost_1_38_0/boost/asio/io_service.hpp:550,

from D:/boost/boost_1_38_0/boost/asio/basic_io_object.hpp:20,

from D:/boost/boost_1_38_0/boost/asio/basic_socket.hpp:24,

from D:/boost/boost_1_38_0/boost/asio/basic_datagram_socket.hpp:25,

from D:/boost/boost_1_38_0/boost/asio.hpp:20,

from ..\src\test project.cpp:12:

D:/boost/boost_1_38_0/boost/date_time/filetime_functions.hpp: In function
`uint64_t boost::date_time::winapi::file_time_to_microseconds(const
FileTimeT&)':

D:/boost/boost_1_38_0/boost/date_time/filetime_functions.hpp:101: warning:
left shift count >= width of type

g++ -LC:\boost_1_38_0\libs -LC:\STLport-5.2.0\build\lib -otestproject.exe
src\test project.o

src\test project.o: In function
`Z41__static_initialization_and_destruction_0ii':

D:/boost/boost_1_38_0/boost/system/error_code.hpp:205: undefined reference
to `boost::system::get_system_category()'

D:/boost/boost_1_38_0/boost/system/error_code.hpp:206: undefined reference
to `boost::system::get_generic_category()'

D:/boost/boost_1_38_0/boost/system/error_code.hpp:211: undefined reference
to `boost::system::get_generic_category()'

D:/boost/boost_1_38_0/boost/system/error_code.hpp:212: undefined reference
to `boost::system::get_generic_category()'

D:/boost/boost_1_38_0/boost/system/error_code.hpp:213: undefined reference
to `boost::system::get_system_category()'

src\test project.o: In function
`ZN5boost6detail17sp_counted_impl_pINS_4asio6detail12winsock_initILi2ELi0EE7do_initEE11get_deleterERKSt9type_info':

D:/boost/boost_1_38_0/boost/detail/sp_counted_impl.hpp:(.text$_ZN5boost4asio6detail12winsock_initILi2ELi0EE7do_initD1Ev[boost::asio::detail::winsock_init<2,
0>::do_init::~do_init()]+0x7): undefined reference to `WSACleanup_at_0'

D:/boost/boost_1_38_0/boost/detail/sp_counted_impl.hpp:(.text$_ZN5boost4asio6detail12winsock_initILi2ELi0EE7do_initC1Ev[boost::asio::detail::winsock_init<2,
0>::do_init::do_init()]+0x1f): undefined reference to `WSAStartup_at_8'

D:/boost/boost_1_38_0/boost/detail/sp_counted_impl.hpp:(.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

Build error occurred, build is stopped

Time consumed: 4886 ms.

-- 
View this message in context: http://old.nabble.com/getting-errors-whti-boost.-tp26856283p26856283.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk