[ADMB Users] Visual Studio 2008 installation issue

8 views
Skip to first unread message

Sylvain Bonhommeau

unread,
Feb 2, 2009, 4:30:55 PM2/2/09
to us...@admb-project.org
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@_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@_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@std@@QAE@H@Z) already defined in admod32.lib(xxmcmc.obj)
libcpmt.lib(xlock.obj) : error LNK2005: "public: __thiscall
std::_Lockit::~_Lock
it(void)" (??1_Lockit@std@@QAE@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>


_______________________________________________
Users mailing list
Us...@admb-project.org
http://lists.admb-project.org/mailman/listinfo/users

John Ancheta

unread,
Feb 2, 2009, 6:19:15 PM2/2/09
to us...@admb-project.org
hi,

there is a incompatible problems with using vc9(2008) or vc8(2005) to
compile and link with vc7(2003) binaries.
it may be time to make another release for ADMB which includes support
for vc9 and vc8.

stay tuned,
johnoel


On Feb 2, 11:30 am, Sylvain Bonhommeau <sylv...@icess.ucsb.edu> wrote:
> 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

Reply all
Reply to author
Forward
0 new messages