Overview
Features
Download
Documentation
Community
Add-Ons & Services

Bug report:POCO Conflict with boost

A general discussion forum.

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
#define POCO_NO_UNWINDOWS

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
#define WIN32_LEAN_AND_MEAN

before any #define instructor.
sgsoft
 
Posts: 34
Joined: 03 Jul 2010, 12:26

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest