[Boost-users] Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately

1,224 views
Skip to first unread message

Jean-Sebastien Stoezel

unread,
Oct 29, 2008, 9:37:17 AM10/29/08
to boost...@lists.boost.org
Hi,

I am compiling Boot 1_35_0 with Visual Studio 2008 under Windows XP,
and at compile time I get the following message:


Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately
Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target)

Following the advice, I then defined the following macro:
_WIN32_WINNT=0x0501


However now I get the following errors:

d:\program files\microsoft visual studio
9.0\vc\atlmfc\include\afxdlgs.h(235) : error C2504:
'IFileDialogEvents' : base class undefined
d:\program files\microsoft visual studio
9.0\vc\atlmfc\include\afxdlgs.h(244) : error C2061: syntax error :
identifier 'FDE_SHAREVIOLATION_RESPONSE'
d:\program files\microsoft visual studio
9.0\vc\atlmfc\include\afxdlgs.h(246) : error C2061: syntax error :
identifier 'FDE_OVERWRITE_RESPONSE'
d:\program files\microsoft visual studio
9.0\vc\atlmfc\include\afxdlgs.h(249) : error C2504:
'IFileDialogControlEvents' : base class undefined

What macros do really need to be defined?
What values should be assigned for Windows XP?

Thanks,
Jean
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Steven Watanabe

unread,
Oct 29, 2008, 4:07:22 PM10/29/08
to boost...@lists.boost.org
AMDG

Jean-Sebastien Stoezel wrote:
> I am compiling Boot 1_35_0 with Visual Studio 2008 under Windows XP,
>

Can you be a little more precise about what you are trying to do?
Are you trying to build the boost libraries as described here
http://www.boost.org/doc/libs/1_36_0/more/getting_started/windows.html#or-build-binaries-from-source
or are you trying to compile a progam using boost, or what?

In Christ,
Steven Watanabe

Jean-Sebastien Stoezel

unread,
Oct 29, 2008, 4:38:59 PM10/29/08
to boost...@lists.boost.org
I'm compiling a program with boost. Everything is properly compiled
and linked except I get this message during compile time.

Steven Watanabe

unread,
Oct 29, 2008, 4:50:09 PM10/29/08
to boost...@lists.boost.org
AMDG

Jean-Sebastien Stoezel wrote:
> I'm compiling a program with boost. Everything is properly compiled
> and linked except I get this message during compile time.
>

Do you have a small test case that you can post?

Jean-Sebastien Stoezel

unread,
Oct 29, 2008, 4:52:05 PM10/29/08
to boost...@lists.boost.org
Unfortunately no

Steven Watanabe

unread,
Oct 29, 2008, 5:02:38 PM10/29/08
to boost...@lists.boost.org
AMDG

Jean-Sebastien Stoezel wrote:
> Unfortunately no
>

Hmm. The warning is coming from boost/asio/detail/socket_types.hpp, right?

So... are you sure that you defined _WIN32_WINNT correctly?
asio just does
# define _WIN32_WINNT 0x0501
So if you do the same thing yourself it should be ok.

Rodrigo Madera

unread,
Oct 29, 2008, 5:09:20 PM10/29/08
to boost...@lists.boost.org
AMDG?

Scott McMurray

unread,
Oct 29, 2008, 9:35:12 PM10/29/08
to boost...@lists.boost.org
On Wed, Oct 29, 2008 at 17:09, Rodrigo Madera <rodrigo...@gmail.com> wrote:
> AMDG?
>

Ad maiorem Diabolus gloriam

http://en.wikipedia.org/wiki/AMDG

Steven Watanabe

unread,
Oct 29, 2008, 9:58:24 PM10/29/08
to boost...@lists.boost.org
AMDG

Scott McMurray wrote:
> On Wed, Oct 29, 2008 at 17:09, Rodrigo Madera <rodrigo...@gmail.com> wrote:
>
>> AMDG?
>>
>
> Ad maiorem Diabolus gloriam
>

Absolutely *not*. Ad Majorem Dei Gloriam.

In Christ,
Steven Watanabe

Reply all
Reply to author
Forward
0 new messages