[Coin-symphony] Re: compile error (now linking error)
Ali Baharev
ali.baharev at gmail.com
Fri Mar 10 18:47:47 EST 2006
I have found the solution (thanx Google).
[...]
This is due to Microsoft Visual C++ Toolkit 2003 is missing the debug
version of the C runtime library (libcmtd.lib). There is a way to fix
this although: use libcmtd.lib from Microsoft .NET SDK v 1.1. I
updated my vc-setup.bat with one more line, and a few lib/inc
modifications as follows:
<pre> set MSVC=C:\Program Files\Microsoft Visual C++ Toolkit 2003 set
MSSDK=C:\Program Files\Microsoft Platform SDK for Windows XP SP2 set
DX=C:\Program Files\Microsoft DirectX 9.0 SDK (October 2004) set
VS=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 set
INCLUDE=%MSVC%\include;%MSSDK%\include;%DX%\Include;%WXWIN%\include;%VS%\include
set LIB=%MSVC%\lib;%MSSDK%\lib;%DX%\Lib;%WXWIN%\lib;%VS%\lib set
PATH=%MSVC%\bin;%MSSDK%\Bin;%PATH% </pre>
[...]
Read more:
http://www.wxwidgets.org/wiki/index.php/Installing_WxWin_For_MS_Free_Tools
Ali
---------- Forwarded message ----------
From: Baharev Ali <ali.baharev at gmail.com>
Date: Mar 10, 2006 11:43 PM
Subject: compile error (now linking error)
To: coin-symphony at list.coin-or.org
First, thanks for the prompt and detailed replies.
I have downloaded the brand new COIN_2006Mar10.tgz.
I have compiled COIN's Coin, Clp, OsiClp and Cgl libraries using the
*.dsp files. They seem to be OK, no error occured.
I have had to comment out these lines:
#if !defined(HAS_SRANDOM)
extern int srandom PROTO((unsigned seed));
#endif
#if !defined(HAS_RANDOM)
extern long random PROTO((void));
#endif
in tm_func.c and _NOT_ in proto.h. By the way, won't it cause problems
in the future?
I changed line 347 in COIN\SYMPHONY\src\WIN32\sym.mak:
lib.exe /nologo /out:$(OUTDIR)\symphonyLib.lib $(OUTDIR)\*.obj
(The command "lib.exe" is unknown on my system.)
Now it is:
link -lib /nologo /out:$(OUTDIR)\symphonyLib.lib $(OUTDIR)\*.obj
After all i get this:
[...]
glprng.c
"symphonyLib.lib" created successfully...
...
Compiling SYMPHONY main function...
Skipping... (no relevant changes detected)
main.c
main compiled successfully...
...
Linking...
LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:ICF'
specification
LINK : fatal error LNK1104: cannot open file 'libcmtd.lib'
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
What shall i do now?
I have checked, libcmtd.lib is not on my computer.
Please note, that i have Microsoft Visual C++ Toolkit 2003 on my system.
Thanks,
Ali
More information about the Symphony
mailing list