|
Boost-Build : |
From: banzai_sst (banzai_sst_at_[hidden])
Date: 2005-10-07 09:53:09
! Sorry for my terrible english !
============================================================
I have Jamfile.v2:
============================================================
# Win32 platform
project win
: source-location ../src
;
SOURCES =
WinEntry.cpp
;
exe start
: $(SOURCES) WinEntry.rc /gl2ps /expat /opennurbs
: <define>WIN32
<user-interface>gui
<linkflags>"user32.lib gdi32.lib kernel32.lib"
<link-runtime>static
<threading>multi
;
stage bin
:
start /winui /winres
[ path.glob $(DLLS_PATH) : *.dll ]
: <location>$(TOP)/_out/bin
<traverse-dependencies>on
<include-type>EXE
<include-type>SHARED_LIB
;
============================================================
WinEntry.cpp
BBv2 dont want to build without <memory.h> above <windows.h>
(in Visual C++ 7.1 all works fine)
============================================================
#include <memory.h>
#include <windows.h>
#include <stdlib.h>
#include "AppAPI.h"
#include "WinAppRes.h"
#include "WinAppVersion.h"
static const AppInfoData winAppData = {
APP_VENDOR,
APP_NAME,
APP_VERSION,
APP_BUILD_ID,
COPYRIGHT,
};
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
return AppMain(__argc, __argv, &winAppData);
}
============================================================
Boost.Build v2 (M10) message:
============================================================
msvc.compile.c++
_bin.v2\win\build\msvc\debug\link-runtime-static\threading-mult
i\user-interface-gui\WinEntry.obj
WinEntry.cpp
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\Guidd
ef.h(161) : error C3861: 'memcmp': identifier not found, even with
argument-depe ndent lookup
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\memory.h(77) : error C2365: 'memcmp' : redefinition;
previous definition was a 'formerly unknown
identifier'
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk