|
From: Rune F. <run...@gm...> - 2005-03-11 09:43:36
|
Hi Leif, Glen,
On Fri, 11 Mar 2005 16:14:18 +0900, Leif Mortenson
<le...@ta...> wrote:
> Glen,
>
> Glen wrote:
>
> > There is no developper list so I figured I would try here. I am
> > trying to build wrapper.exe using the makewin32.bat. That is using MS
> > vc++ 98. I have vc++ 7.0 (the one that comes with .net pro 2003).
> > Does anyone know how I could either
> >
> > * obtain a copy of ms vc++ 98 that is currently used for the win32
> > build (I am willing to $$$$ it but am not 100% sure what to buy)
> > * make the necessary changes to get the vc++.net compilre working
> > with it
> >
> Just answered you offline on this. But try running build.bat in the src
> root directory.
> There may be a few changes need for .net but they should be simple. I
> never use
> C for much other than the Wrapper so have never had the need to upgrade my
> copy of vc++.
>
> I would appreciate you posting any changes that are required to get
> things working
> with the vc++ .net.
>
I'm building the wrapper under Visual C++ .NET 2003. I'll try to list
up what changes I made in order to make it build properly:
-- ant.properties: (add the following line to override default, create
the file if it's missing)
msvc.home=c:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7
-- src\c\Wrapper.dep.in: - changed the following sections
.\wrapper.c : \
"@msvc.home@\PlatformSDK\include\basetsd.h"\
".\logger.h"\
".\property.h"\
".\wrapper.h"\
.\wrapper_win.c : \
"@msvc.home@\PlatformSDK\include\basetsd.h"\
".\logger.h"\
".\property.h"\
".\wrapper.h"\
-- src\c\wrapper.h: _CRTAPI1 is not defined, so this has to be done
somewhere. I just added it to the wrapper.h file. If I remember
correctly I found this snippet on the msdn library.
#ifndef _CRTAPI1
#if _MSC_VER >= 800 && _M_IX86 >= 300
#define _CRTAPI1 __cdecl
#else /* _MSC_VER >= 800 && _M_IX86 >= 300 */
#define _CRTAPI1
#endif /* _MSC_VER >= 800 && _M_IX86 >= 300 */
#endif /* _CRTAPI1 */
-- build.xml: change every occourance of ${msvc.home}/VC98/ to ${msvc.home}/
-- src/c/makewin32.bat: change the 3rd line to:
call %1\BIN\VCVARS32.BAT
I think this is it, but it's been a while since last time I was
"playing" with this stuff.
--
Rune
|