[ADMB Users] Matrix functions for ADMB-RE
dave fournier
davef at otter-rsch.com
Fri Jun 27 14:40:52 PDT 2014
On 06/27/2014 02:14 PM, Stirrup, Oliver wrote:
It compiles OK for me. However I have long since forgotten the
details. Maybe you are missing
the attached function, f1b2sol2.cpp. can you cimple and link that in
with your program?
Or you can add the guts of it to your tpl file in the GLOBALS_SECTION.
Dave
> Thanks for getting back to me again, Dave. I have made the amendment to the TPL file that you suggest, but still haven't quite got this working. Compilation seems to progress to a later stage than previously, but I am ending up with the following error message:
> <<<
>
> *** adcomp -r orange
> g++ -c -O3 -Wno-deprecated -D__GNUDOS__ -Dlinux -DOPT_LIB -DUSE_LAPLACE -fpermissive -I. -I"c:/ADMB/admb101-gcc452-win64\include" -o orange.obj orange.cpp
>
> *** adlink -r orange
> g++ -s -static -L"c:/ADMB/admb101-gcc452-win64\lib" orange.obj -ldf1b2o -ladmod -ladt -lado -ldf1b2o -ladmod -ladt -lado -o orange
> orange.obj:orange.cpp:(.text+0xeb3): undefined reference to `solve(df1b2matrix const&, df1b2vector const&, df1b2variable const&, double&)'
> orange.obj:orange.cpp:(.text+0x3fe5): undefined reference to `solve(df1b2matrix const&, df1b2vector const&, df1b2variable const&, double&)'
> collect2: ld returned 1 exit status
>
> Error: could not create orange.exe
>
> Oliver
> ________________________________________
> From: dave fournier <davef at otter-rsch.com>
> Sent: 27 June 2014 17:46
> To: users at admb-project.org; Stirrup, Oliver
> Subject: Re: [ADMB Users] Matrix functions for ADMB-RE
>
> Line 75 in your tpl file should be
>
>
>
> dvar_vector tmp=solve(Vi,res,ld,sgn);
>
>
> Sorry this is so finicky. Maybe eventually we will get past pretty
> printing documentation
> and just fix stuff.
>
> Dave
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: f1b2sol2.cpp
Type: text/x-c++src
Size: 3844 bytes
Desc: not available
URL: <http://lists.admb-project.org/pipermail/users/attachments/20140627/f7acb011/attachment.cpp>
More information about the Users
mailing list