|
From: Ryan P. <rpu...@gm...> - 2007-02-09 14:53:20
|
On 2/6/07, Francesco Montorsi <f18...@ya...> wrote:
> I've checked and indeed there was a problem with snapshots generation
> (well, the problem was simply that "cvs update" was refusing to update
> the makefiles because of some conflicts). It should be solved now (look
> at the snapshot for feb 6).
I got it and it had the right files in it. MinGW works as expected. :-) But...
There is a problem with this addition.
Using Visual C++ to compile you are setting
__RUNTIME_LIBS = L
and it should be
__RUNTIME_LIBS = T
I don't know where that is in the bakefiles, but it is wrong in all
the makefiles.
Here is the whole statement
!if "$(RUNTIME_LIBS)" == "static"
__RUNTIME_LIBS = T
All of the libraries compile fine but I can't get lua.exe to compile.
It complains about duplicate C library entries.
Here is the compiler call:
cd D:\devel\lua\wxLua\build\msw
cd ..\..\apps\build\msw
nmake -f makefile.vc CC="cl" CXX="cl" CFLAGS="" CXXFLAGS=""
CPPFLAGS="" LDFLAGS="" BUILD="release" UNICODE="0"
SHARED="0" WX_DIR="D:\Devel\Libraries\wxWidgets2.8" WX_SHARED="0"
WX_VERSION="28" WX_MONOLITHIC="1" USE_APPS="1" USE
_SYSTEM_LUA="0" LUA_DIR="..\..\..\modules\lua" RUNTIME_LIBS="static"
USE_WXBINDSTC="1" USE_WXLUADEBUG="1" USE_WXLUASOC
KET="1" USE_LUAMODULE="1" USE_WXLUAAPP="1" USE_WXLUACANAPP="1"
WXSTEDIT_DIR="" USE_WXLUAEDITAPP="0" USE_WXLUAFREEZEA
PP="1"
Microsoft (R) Program Maintenance Utility Version 7.00.8882
Copyright (C) Microsoft Corp 1988-2000. All rights reserved.
if not exist vcmsw_ mkdir vcmsw_
cl /c /nologo /TC /Fovcmsw_\app_lua_lua.obj /MT /DWIN32
/D__WXMSW__ /ID:\Devel\Libraries\wxWidgets2.8\lib\vc
_lib\msw /ID:\Devel\Libraries\wxWidgets2.8\include /w /O2
/Fd..\..\..\bin\vc_lib\lua.pdb /I..\..\..\modules /I.\.
.\..\.. /I..\..\..\modules\lua\include /D_CONSOLE
/I..\..\..\modules\lua\include ..\..\..\modules\lua\src\lua.c
lua.c
link /NOLOGO /OUT:..\..\..\bin\vc_lib\lua.exe
/LIBPATH:D:\Devel\Libraries\wxWidgets2.8\lib\vc_lib /LIBPATH:..\
..\..\lib\vc_lib /LIBPATH:..\..\..\modules\lua\lib /SUBSYSTEM:CONSOLE
@C:\DOCUME~1\rpusztai\LOCALS~1\Temp\nm212.tmp
MSVCRT.lib(MSVCR71.dll) : error LNK2005: _strstr already defined in
LIBCMT.lib(strstr.obj)
MSVCRT.lib(MSVCR71.dll) : error LNK2005: _strchr already defined in
LIBCMT.lib(strchr.obj)
MSVCRT.lib(MSVCR71.dll) : error LNK2005: _fclose already defined in
LIBCMT.lib(fclose.obj)
MSVCRT.lib(MSVCR71.dll) : error LNK2005: __errno already defined in
LIBCMT.lib(dosmap.obj)
...
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of
other libs; use /NODEFAULTLIB:library
..\..\..\bin\vc_lib\lua.exe : fatal error LNK1169: one or more
multiply defined symbols found
NMAKE : fatal error U1077: 'link' : return code '0x491'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Platform
SDK\bin\nmake.exe"' : return code '0x2'
Stop.
Any thoughts? I see the /MD in the commandline. Are there differences
in the bakefile for lua.exe? I tried this in VC 8.0 as well. Same
errors.
--
Regards,
Ryan
RJP Computing
|