[ADMB Users] Trying to install ADMB with Visual Studio 2005

Mark Payne mpa at aqua.dtu.dk
Tue Feb 3 06:01:51 PST 2009


Hi ADMBers,

I'm just trying to make my first tentative steps into the ADMB world. I
have MS Visual Studio 2005 installed under Windows XP, and would like to
use it with ADMB if possible. I have downloaded the zip file for visual
C, and followed the instructions defined here:

http://admb-project.org/documentation/admb-installation-visual-c

Everything seems to work fine until I try and run the examples (Step 5)
- it runs for a while, but at some point crashes out, reporting that it
cannot open the file "libcp.lib". The full output is below.

Can anyone help please?

Best wishes,

Mark Payne

---------
Setting environment for using Microsoft Visual Studio 2005 x86 tools.

C:\Program Files\Microsoft Visual Studio 8\VC>cd \ADMB

C:\ADMB>bin\admb-vc-vars.bat
Set ADMB Home directory to C:\ADMB

C:\ADMB>nmake

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd C:\ADMB\examples\admb\buscycle
        makeadm ham4

C:\ADMB\examples\admb\buscycle>tpl2cpp ham4
xxglobal.tmp
xxhtop.tmp
header.tmp
xxalloc.tmp
xxtopm.tmp
        1 file(s) copied.

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

C:\ADMB\examples\admb\buscycle>cl -c  -DUSE_LAPLACE -DWIN32 -DOPT_LIB
/Ox -D__MS
VC32__=7 -I. -IC:\ADMB\include ham4.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762
for 80x86

Copyright (C) Microsoft Corporation.  All rights reserved.

ham4.cpp
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xlocale(326) :
warning C45
30: C++ exception handler used, but unwind semantics are not enabled.
Specify /E
Hsc
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xlocale(341) :
warning C45
30: C++ exception handler used, but unwind semantics are not enabled.
Specify /E
Hsc
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xlocale(358) :
warning C45
30: C++ exception handler used, but unwind semantics are not enabled.
Specify /E
Hsc
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\istream(1075) :
warning C4
530: C++ exception handler used, but unwind semantics are not enabled.
Specify /
EHsc
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\ostream(281) :
warning C45
30: C++ exception handler used, but unwind semantics are not enabled.
Specify /E
Hsc
        C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\ostream(268) : whi
le compiling class template member function
'std::basic_ostream<_Elem,_Traits> &
std::basic_ostream<_Elem,_Traits>::operator <<(__w64 int)'
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\ostream(971) : see
 reference to class template instantiation
'std::basic_ostream<_Elem,_Traits>' b
eing compiled
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\ostream(423) :
warning C45
30: C++ exception handler used, but unwind semantics are not enabled.
Specify /E
Hsc
        C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\ostream(415) : whi
le compiling class template member function
'std::basic_ostream<_Elem,_Traits> &
std::basic_ostream<_Elem,_Traits>::operator <<(double)'
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\ostream(520) :
warning C45
30: C++ exception handler used, but unwind semantics are not enabled.
Specify /E
Hsc
        C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\ostream(512) : whi
le compiling class template member function
'std::basic_ostream<_Elem,_Traits> &
std::basic_ostream<_Elem,_Traits>::put(_Elem)'
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\ostream(520) :
warning C45
30: C++ exception handler used, but unwind semantics are not enabled.
Specify /E
Hsc
        C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\ostream(512) : whi
le compiling class template member function
'std::basic_ostream<_Elem,_Traits> &
std::basic_ostream<_Elem,_Traits>::put(_Elem)'
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits<wchar_t>
        ]
        C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\ostream(980) : see
 reference to class template instantiation
'std::basic_ostream<_Elem,_Traits>' b
eing compiled
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits<wchar_t>
        ]
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\istream(102) :
warning C45
30: C++ exception handler used, but unwind semantics are not enabled.
Specify /E
Hsc
        C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\istream(92) : whil
e compiling class template member function 'bool
std::basic_istream<_Elem,_Trait
s>::_Ipfx(bool)'
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
        C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\istream(1065) : se
e reference to class template instantiation
'std::basic_istream<_Elem,_Traits>'
being compiled
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\istream(102) :
warning C45
30: C++ exception handler used, but unwind semantics are not enabled.
Specify /E
Hsc
        C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\istream(92) : whil
e compiling class template member function 'bool
std::basic_istream<_Elem,_Trait
s>::_Ipfx(bool)'
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits<wchar_t>
        ]
        C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\istream(1100) : se
e reference to class template instantiation
'std::basic_istream<_Elem,_Traits>'
being compiled
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits<wchar_t>
        ]
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\ostream(144) :
warning C45
30: C++ exception handler used, but unwind semantics are not enabled.
Specify /E
Hsc
        C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\ostream(143) : whi
le compiling class template member function 'void
std::basic_ostream<_Elem,_Trai
ts>::_Osfx(void)'
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\ostream(144) :
warning C45
30: C++ exception handler used, but unwind semantics are not enabled.
Specify /E
Hsc
        C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\ostream(143) : whi
le compiling class template member function 'void
std::basic_ostream<_Elem,_Trai
ts>::_Osfx(void)'
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits<wchar_t>
        ]
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xstring(2009) :
warning C4
530: C++ exception handler used, but unwind semantics are not enabled.
Specify /
EHsc
        C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\xstring(2000) : wh
ile compiling class template member function 'void
std::basic_string<_Elem,_Trai
ts,_Ax>::_Copy(unsigned int,unsigned int)'
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>,
            _Ax=std::allocator<char>
        ]
        C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\stdexcept(48) : se
e reference to class template instantiation
'std::basic_string<_Elem,_Traits,_Ax
>' being compiled
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>,
            _Ax=std::allocator<char>
        ]
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\ostream(757) :
warning C45
30: C++ exception handler used, but unwind semantics are not enabled.
Specify /E
Hsc
        C:\ADMB\include\fvar.hpp(6753) : see reference to function
template inst
antiation 'std::basic_ostream<_Elem,_Traits> &std::operator
<<<std::char_traits<
char>>(std::basic_ostream<_Elem,_Traits> &,const char *)' being compiled
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xlocnum(130) :
warning C45
30: C++ exception handler used, but unwind semantics are not enabled.
Specify /E
Hsc
        C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\xlocnum(123) : whi
le compiling class template member function 'void
std::numpunct<_Elem>::_Init(co
nst std::_Locinfo &)'
        with
        [
            _Elem=char
        ]
        C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\xlocnum(941) : see
 reference to class template instantiation 'std::numpunct<_Elem>' being
compiled

        with
        [
            _Elem=char
        ]
        C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\xlocnum(932) : whi
le compiling class template member function
'std::ostreambuf_iterator<_Elem,_Tra
its> std::num_put<_Elem,_OutIt>::do_put(_OutIt,std::ios_base
&,_Elem,std::_Bool)
 const'
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>,
            _OutIt=std::ostreambuf_iterator<char,std::char_traits<char>>
        ]
        C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\ostream(282) : see
 reference to class template instantiation 'std::num_put<_Elem,_OutIt>'
being co
mpiled
        with
        [
            _Elem=char,
            _OutIt=std::ostreambuf_iterator<char,std::char_traits<char>>
        ]
        C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\ostream(268) : whi
le compiling class template member function
'std::basic_ostream<_Elem,_Traits> &
std::basic_ostream<_Elem,_Traits>::operator <<(__w64 int)'
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>
        ]

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

C:\ADMB\examples\admb\buscycle>cl  ham4.obj df1b2stubo.lib admod32.lib
ado32.lib
 adt32.lib /link /libpath:C:\ADMB\lib
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762
for 80x86

Copyright (C) Microsoft Corporation.  All rights reserved.

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

/out:ham4.exe
/libpath:C:\ADMB\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:\ADMB\bin\makeadm.BAT' : return code '0x2'
Stop.

C:\ADMB>



More information about the Users mailing list