[ADMB Users] Problem with ADMB-IDE

Paul Conn Paul.Conn at noaa.gov
Thu Sep 16 12:53:51 PDT 2010


Nice find.  I was having the same problem with ADMB-IDE a few months ago 
but never found the reason for the error (I also have Rtools\mingw\bin 
in my system path so suspect it was the issue) - after messing with it 
for a few hours my solution  was to give up and go back to my old text 
editor and the Borland compiler.  Does anyone know if there's a 
reasonable workaround for gcc, or should regular users of Rtools, 
Sweave, etc. stick with the Borland compiler to prevent having to 
continuously mess with environment variables?

Paul

Nelson, Gary (FWE) wrote:
> The issue was a conflict between a mingw32 version used in the 
> Rtools.  The system path has c:\Rtools\mingw\bin, so I guess it took 
> precedence.  I removed the path and now ADMB-IDE works.
>  
> Thanks for your help.
>  
> Gary. 
>
> ------------------------------------------------------------------------
> *From:* Nelson, Gary (FWE)
> *Sent:* Thursday, September 16, 2010 3:11 PM
> *To:* 'users at admb-project.org'
> *Subject:* RE: Problem with ADMB-IDE
>
> Dave,
>  
> I tried >gcc -v and get or the version
>  
> gcc version 4.2.1-sjlj (mingw32-2)
>  
> Gary.
>
> ------------------------------------------------------------------------
> *From:* Nelson, Gary (FWE)
> *Sent:* Thursday, September 16, 2010 2:03 PM
> *To:* 'users at admb-project.org'
> *Subject:* Problem with ADMB-IDE
>
> I installed ADMB-IDE on my Windows XP computer today using the Windows 
> Installer.  When I compiled the 'simple' example in the manual,  I get 
> some errors (see below) that I don't understand.  I checked all of the 
> PATH variables and everything seems to be ok. Any suggestions?
>  
> Thanks,
>  
> Gary Nelson.
>  
> -----------------------------------------------------------------------------------------------------------------------------------------------
>  
> -*- mode: compilation; default-directory: "c:/simple/" -*-
> Compilation started at Thu Sep 16 13:56:35
>  
> admb  simple
>  
> *** tpl2cpp   simple
> xxglobal.tmp
> xxhtop.tmp
> header.tmp
> xxalloc.tmp
> xxtopm.tmp
>         1 file(s) copied.
>  
> *** adcomp     simple
> g++ -c -O3 -Wno-deprecated -D__GNUDOS__  -Dlinux -DOPT_LIB 
> -DUSE_LAPLACE -fpermissive -I. -Ic:/admb/gcc440/include simple.cpp
>  
> *** adlink     simple
> g++ -s -static  -Lc:/admb/gcc440/lib simple.o -ldf1b2stub -ladmod 
> -ladt -lado -ldf1b2stub -ladmod -ladt -lado -o simple
> c:/admb/gcc440/lib\libadmod.a(admodel.obj):admodel.cpp:(.text$_ZN17named_dvar_vectorD2Ev[named_dvar_vector::~named_dvar_vector()]+0x34): 
> undefined reference to `_Unwind_Resume'
> c:/admb/gcc440/lib\libadmod.a(admodel.obj):admodel.cpp:(.text$_ZN15named_dvariableD2Ev[named_dvariable::~named_dvariable()]+0x34): 
> undefined reference to `_Unwind_Resume'
> c:/admb/gcc440/lib\libadmod.a(admodel.obj):admodel.cpp:(.text$_ZN17named_dvar_matrixD2Ev[named_dvar_matrix::~named_dvar_matrix()]+0x34): 
> undefined reference to `_Unwind_Resume'
> c:/admb/gcc440/lib\libadmod.a(admodel.obj):admodel.cpp:(.text$_ZN17named_dvar3_arrayD2Ev[named_dvar3_array::~named_dvar3_array()]+0x34): 
> undefined reference to `_Unwind_Resume'
> c:/admb/gcc440/lib\libadmod.a(admodel.obj):admodel.cpp:(.text$_ZN18dll_named_adstringC1Ev[dll_named_adstring::dll_named_adstring()]+0x3c): 
> undefined reference to `_Unwind_Resume'
> c:/admb/gcc440/lib\libadmod.a(admodel.obj):admodel.cpp:(.text$_ZN14named_d7_arrayC1Ev[named_d7_array::named_d7_array()]+0x35): 
> more undefined references to `_Unwind_Resume' follow
> c:/admb/gcc440/lib\libadmod.a(admodel.obj):admodel.cpp:(.eh_frame+0x12): 
> undefined reference to `__gxx_personality_v0'
> c:/admb/gcc440/lib\libadmod.a(model7.obj):model7.cpp:(.text+0x2ba): 
> undefined reference to `_Unwind_Resume'
> .
> .
> .
> .
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/users
>   

-- 
Paul B. Conn, Ph.D.
Research Statistician
National Marine Fisheries Service
NOAA Fisheries Center for Coastal Fisheries and Habitat Research
Southeast Fisheries Science Center
101 Pivers Island Rd
Beaufort, NC 28516
phone 252.838.0807
fax 252.728.8619
Paul.Conn at noaa.gov

"Information contained in this message does not represent the official
view of the National Oceanic and Atmospheric Administration."

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20100916/b76a9504/attachment.html>


More information about the Users mailing list