[ADMB Users] Fwd: lgam in 10.0

Mollie Brooks mbrooks at ufl.edu
Sun May 15 13:56:29 PDT 2011


Those line numbers refer to lines of df13tester.cpp

On 15 May 2011, at 4:54 PM, Mollie Brooks wrote:

>> These steps (below, for Unix with g++) seem to have worked perfectly for the compile on my mac. The problem was that I got distracted during the verify and forgot step 6. Sorry for wasting your time.
>> There was no need to edit ./.bashrc and no need to restart the terminal before using it.
> 
> After commenting out lines 309, 314, and 943 to 1050, I was able to compile the the code and attempted to run the model . However, it appears that the function isn't defined for my variable type
> 
> *** Parsing: tpl2cpp firdbhfec
> 
> *** Compiling: CXXFLAGS="-m64" adcomp firdbhfec
> g++ -c -O3 -Wno-deprecated  -DOPT_LIB -D__GNUDOS__ -Dlinux -DUSE_LAPLACE -fpermissive -I. -I/usr/local/admb/include -m64 firdbhfec.cpp
> firdbhfec.cpp: In member function ‘virtual void model_parameters::userfunction()’:
> firdbhfec.cpp:35: error: cannot convert ‘prevariable’ to ‘double’ for argument ‘2’ to ‘double log_density_negbinomial(double, double, double)’
> 
> Error: Failed to build executable.
> 
>> thanks,
>> Mollie
>> 
>> 
>> Begin forwarded message:
>> 
>>> From: Steve Martell <martell.steve at gmail.com>
>>> Date: 15 May, 2011 2:47:32 PM EDT
>>> To: Mollie Brooks <mbrooks at ufl.edu>
>>> Subject: Re: [ADMB Users] lgam in 10.0
>>> 
>>> Hi Mollie,
>>> I compile and install the source code all the time using the following steps.  Sounds to me like your missing step 6.  I don't edit the .bashrc file.  Mine has nothing in it.
>>> 
>>> S.
>>> 
>>> Installation from Source Code
>>> =============================
>>> Below are procedures for installing ADMB from source code.
>>> 
>>> Unix and GNU g++
>>> ----------------
>>> 1. Extract source distribution
>>>    
>>>    $ unzip admb-10.0.zip
>>> 
>>> 2. Change to distribution directory
>>> 
>>>    $ cd admb-10.0
>>> 
>>> 3. Configure the build files for 32-bit
>>> 
>>>    $ ./configure
>>> 
>>>    or configure the build files for 64-bit.
>>> 
>>>    $ ./configure BUILD_64BIT=yes
>>> 
>>> 4. Build libraries 
>>>   
>>>    $ make
>>> 
>>> 5. [Optional] Test build by running examples
>>> 
>>>    $ make verify
>>> 
>>> 6. Install libraries to default location /usr/local.
>>> 
>>>    $ make install
>>> 
> 
> _______________________________________________
> Users mailing list
> Users at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/users

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


More information about the Users mailing list