Bug report:POCO Conflict with boost

A general discussion forum.
Posts: 34
Joined: 03 Jul 2010, 12:26

Bug report:POCO Conflict with boost

Postby sgsoft » 16 Jul 2010, 09:45

When use boost and poco in one C++ application,you will find this error:

Code: Select all

error C2039: “CreateEvent”:is not “`global namespace'” member. .\boost_1_43_0\boost\asio\detail\win_iocp_handle_service.hpp   261   
error C3861: “CreateEvent”:  unresolve......\boost\boost_1_43_0\boost\asio\detail\win_iocp_handle_service.hpp   261   

To fix the bug ,you must use POCO macro:

Code: Select all


this macro will disable \poco-1.3.6p2\Foundation\include\Poco\UnWindows.h .

but ,you will encounter another error:

Code: Select all

error   4   fatal error C1189: #error :  WinSock.h has already been included   ..\boost\boost_1_43_0\boost\asio\detail\socket_types.hpp   27   

you must define

Code: Select all


before any #define instructor.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest