[prev in list] [next in list] [prev in thread] [next in thread]
List: activemq-users
Subject: Re: ACTIVEMQ-CPP Error compiling with windows.h header included in
From: Ivan Pechorin <ivan.pechorin () gmail ! com>
Date: 2011-01-25 12:34:14
Message-ID: AANLkTikQer4pi7Cub1WiH8P_ys7t9BqXEfAxotX6iZFf () mail ! gmail ! com
[Download RAW message or body]
2011/1/25 Oscar Pernas <oscar@pernas.es>:
> Im using ActiveMQ-CPP in a dll using windows XP. When I was trying to
> compile my library (that uses activemq-cpp), I was always having error
> C2059: syntax error : 'constant' in thread.h class of decaf/lang.
> I was looking for a solution and I saw that the constant was defined in
> winspool.h
>
> Thread.h
> static const int MIN_PRIORITY = 1;
>
> winspool.h
> #define MAX_PRIORITY 99
> #define MIN_PRIORITY 1
Try to #define WIN32_LEAN_AND_MEAN before including <windows.h>:
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
As far as I remember, winspool.h won't be included if you define
WIN32_LEAN_AND_MEAN.
Regards,
Ivan
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic