Compiler error when including boost/asio.hpp on C++ Builder 2010 -


edit: solved!

i added boost_all_no_lib conditional defines , added errorcode.cpp /libs/system/src/ folder project.


i set c++ builder , been playing around head around c++.

i need use boost-asio project working on, have come across bit of problem when trying include , compile it. have set project include path , should (i can test removing , compiler complains can't find asio.hpp, not issue).

i have tried 2 versions of boost, 1_39 , 1_46, , different errors depending on version used.

ignore warnings starters, guess. also, if want full parser context errors, please let me know , can post them.

1_39:

[bcc32 warning] error_code.hpp(486): w8104 local static constructor dangerous multi-threaded apps

[bcc32 warning] error.hpp(349): w8104 local static constructor dangerous multi-threaded apps

[bcc32 error] auto_link.hpp(262): e2075 incorrect pragma directive option: -v

[bcc32 error] static_log2.hpp(51): e2451 undefined symbol 'n'

[bcc32 error] static_log2.hpp(55): e2451 undefined symbol 'value'

[bcc32 error] static_log2.hpp(55): e2230 in-line data member initialization requires integral constant expression

[bcc32 fatal error] static_log2.hpp(49): f1004 internal compiler error @ 0x55a4e8d base 0x5500000

1_46:

[bcc32 warning] xutility(1808): w8017 redefinition of 'nominmax' not identical

[bcc32 warning] stdint.h(168): w8017 redefinition of 'wchar_max' not identical

[bcc32 warning] win_tss_ptr.ipp(41): w8012 comparing signed , unsigned values

[bcc32 warning] socket_select_interrupter.ipp(138): w8012 comparing signed , unsigned values

[bcc32 error] strand_service.hpp(31): e2247 'strand_service::do_complete(win_iocp_io_service *,win_iocp_operation *,system::error_code,unsigned int)' not accessible

[bcc32 warning] strand_service.ipp(95): w8058 cannot create pre-compiled header: initialized data in header

the source code doesn't matter, regardless (removing asio include, have no trouble, obviously):

//--------------------------------------------------------------------------- #include <boost/asio.hpp> #include <iostream> //---------------------------------------------------------------------------  int main () {     std::cout << "test";     std::cin.ignore();     return 0; } //--------------------------------------------------------------------------- 

edit: solved!

i added boost_all_no_lib conditional defines , added errorcode.cpp /libs/system/src/ folder project.

solved per edit:

i added boost_all_no_lib conditional defines , added errorcode.cpp /libs/system/src/ folder project.


Comments