Discussion:
[omniORB] Preprocessor definitions for windows 64-bit omniORB
anirudh nair
2011-01-19 16:29:22 UTC
Permalink
Hi,

I'm trying to build a C++ visual studio 2010 project with
64-bit omniORB on Windows 7. I have two questions in this regard.

1) Are the preprocessor definitions same as that of the 32-bit version?
From the documentation I see the following definitions

__WIN32__,__x86__,_WIN32_WINNT=0x0400, __NT__ and __OSVERSION__=4

The above definitions seems to be for 32-bit. Can someone give me the
corresponding
64-bit definitions.

2) What are the 64-bit libraries corresponding to ws2_32.lib, mswsock.lib
and advapi32.lib?

Thanks
Anirudh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20110119/4f9c52de/attachment.htm
Duncan Grisby
2011-01-27 17:25:14 UTC
Permalink
Post by anirudh nair
1) Are the preprocessor definitions same as that of the 32-bit
version?
From the documentation I see the following definitions
__WIN32__,__x86__,_WIN32_WINNT=0x0400, __NT__ and __OSVERSION__=4
The above definitions seems to be for 32-bit. Can someone give me the
corresponding 64-bit definitions.
They are the same. You need __WIN32__ to activate Windows-related
things. The standard compiler headers automatically define __WIN64__ for
you so the compile knows to use 64-bit support.
Post by anirudh nair
2) What are the 64-bit libraries corresponding to ws2_32.lib,
mswsock.lib and advapi32.lib?
They're the same.

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
Loading...