conflict between windows.h en openvibe

Making & changing hardware drivers in Acquisition Server
Post Reply
yannick
Posts: 53
Joined: Sun Jan 10, 2010 2:32 pm

conflict between windows.h en openvibe

Post by yannick »

Hi,
I am trying to compile my driver for openvibe, but when i do it i have an compilation error.
C:\openvibe\openvibe-applications\acquisition-server\tags\0.5.0\src\deltamed\ovasCDriverToto.cpp(135) : error C2872: 'boolean'ÿ: ambiguous symbol
is may be 'c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(156)ÿ: unsigned char boolean'
or 'c:\openvibe\openvibe\tags\0.5.0\include\openvibe\ov_types.h(13)ÿ: OpenViBE::boolean'

In my code, when i include <windows.h>, i have this error.

Can you help me?

yrenard
Site Admin
Posts: 645
Joined: Fri Sep 01, 2006 3:39 pm
Contact:

Re: conflict between windows.h en openvibe

Post by yrenard »

yannick,

just #define OpenViBE::boolean boolean after the includes in your .cpp file... this is done in all the cpp files including windows.h ! See for example the MindMedia driver :

Code: Select all

#if defined OVAS_OS_Windows
 #include <windows.h>
 #define boolean OpenViBE::boolean
#endif
Best regards,
Yann

Post Reply