[ADMB Users] Visual Studio 2008 installation issue

Sylvain Bonhommeau sylvain at icess.ucsb.edu
Mon Feb 2 13:30:55 PST 2009


Hi users,

I'm trying to install ADMB on my Windows laptop but I have an problem 
and I didn't succeed in fixing it.

I use Visual C++ 2008 and I followed the instructions for installation 
on the ADMB docs and the website 
(http://admb-project.org/documentation/admb-installation-visual-c). I'm 
still stuck though...

Here is a copy paste of the prompt when running the example nmake. (The 
same errors occurred when running simple or vonb scripts...).

Thanks for your help.

Cheers,

Sylvain

PS: directory used for ADMB is C:\ADMODEL and I downloaded the win32 
Visual Studio 2003 version of ADMB @ 
http://admb-project.googlecode.com/files/admb-9.0.65-win32-vc7.zip



Setting environment for using Microsoft Visual Studio 2008 x86 tools.
C:\Program Files\Microsoft Visual Studio 9.0\VC>cd c:\ADMODEL
C:\ADMODEL>bin\admb-vc-vars.bat
Set ADMB Home directory to C:\ADMODEL

C:\ADMODEL>nmake

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.
        cd C:\ADMODEL\examples\admb\buscycle
        makeadm ham4

C:\ADMODEL\examples\admb\buscycle>tpl2cpp ham4
xxglobal.tmp
xxhtop.tmp
header.tmp
xxalloc.tmp
xxtopm.tmp
        1 fichier(s) copié(s).

C:\ADMODEL\examples\admb\buscycle>call mycl.bat ham4

C:\ADMODEL\examples\admb\buscycle>cl -c  -DUSE_LAPLACE -DWIN32 -DOPT_LIB 
/Ox -D_
_MSVC32__=7 -I. -Ic:\ADMODEL\include ham4.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 
for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

ham4.cpp
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : 
warning C
4530: C++ exception handler used, but unwind semantics are not enabled. 
Specify
/EHsc

C:\ADMODEL\examples\admb\buscycle>call linkcl.bat ham4

C:\ADMODEL\examples\admb\buscycle>cl  ham4.obj df1b2stubo.lib 
admod32.lib ado32.
lib adt32.lib /link /libpath:c:\ADMODEL\lib
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 
for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

Microsoft (R) Incremental Linker Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:ham4.exe
/libpath:c:\ADMODEL\lib
ham4.obj
df1b2stubo.lib
admod32.lib
ado32.lib
adt32.lib
libcpmt.lib(xmutex.obj) : error LNK2005: "public: void __thiscall 
std::_Mutex::_
Lock(void)" (?_Lock at _Mutex@std@@QAEXXZ) already defined in 
df1b2stubo.lib(df1b2s
tub.obj)
libcpmt.lib(xmutex.obj) : error LNK2005: "public: void __thiscall 
std::_Mutex::_
Unlock(void)" (?_Unlock at _Mutex@std@@QAEXXZ) already defined in 
df1b2stubo.lib(df
1b2stub.obj)
libcpmt.lib(xlock.obj) : error LNK2005: "public: __thiscall 
std::_Lockit::_Locki
t(int)" (??0_Lockit at std@@QAE at H@Z) already defined in admod32.lib(xxmcmc.obj)
libcpmt.lib(xlock.obj) : error LNK2005: "public: __thiscall 
std::_Lockit::~_Lock
it(void)" (??1_Lockit at std@@QAE at XZ) already defined in 
admod32.lib(xxmcmc.obj)
LINK : fatal error LNK1104: cannot open file 'libcp.lib'
NMAKE : fatal error U1077: 'C:\ADMODEL\bin\makeadm.BAT' : return code '0x2'
Stop.

C:\ADMODEL>





More information about the Users mailing list