[ADMB Users] include contrib

CHRIS GRANDIN cgrandin at shaw.ca
Wed Jan 4 23:14:47 PST 2012


Just to remind - I have implemented this, for statslib and am waiting to commit those changes.  I also made some small changes to build statslib during the admb build. 

Chris

----- Original Message -----
From: Johnoel Ancheta <johnoel at hawaii.edu>
Date: Tuesday, January 3, 2012 10:34 pm
Subject: Re: [ADMB Users] include contrib
To: users at admb-project.org

> I've got a rough idea.  Will work on it after the server upgrade.
> 
> 
> On 1/3/12 3:53 PM, John Sibert wrote:
> >No. We just waffled about it in Santa Barbara, but that is as 
> far as it went. I'm not sure we ever came to grips with how to 
> cope with contributed libraries.
> >
> >John
> >
> >On 01/03/2012 03:32 PM, Mollie Brooks wrote:
> >>Thanks John,
> >>I couldn't quite tell from the earlier threads if that had 
> been done or not.
> >>Mollie
> >>
> >>
> >>On 3 Jan 2012, at 8:11 PM, John Sibert wrote:
> >>
> >>>Assuming you are using the admb script?
> >>>
> >>>It is necessary to specify the include search path for the 
> compiler using -I , e.g
> >>>-I/Users/molliebrooks/admb-trunk/contrib/statslib
> >>>
> >>>For the admb script, this option would be included in the 
> CXXFLAGS environment variable.
> >>>
> >>>I'm sure someone will figure out an elegant solution.
> >>>
> >>>Cheers,
> >>>John
> >>>
> >>>On 01/03/2012 02:44 PM, Mollie Brooks wrote:
> >>>>Hi ADMB community,
> >>>>
> >>>>I'm working on some user contributed libraries and want to 
> make sure that I'm testing them correctly. So I was wondering if 
> there is an established way to include these types of files. I'm 
> testing inclusion methods with already working user contributed code.
> >>>>
> >>>>I am able to use files from the contrib directory by 
> specifying the path with the following line
> >>>>    #include</Users/molliebrooks/admb-
> trunk/contrib/statslib/dnbinom.cpp>   //this works
> >>>>
> >>>>I also tried the following
> >>>>    #include "contrib.h" //this doesn't work
> >>>>    #include "statsLib.h" //this doesn't work
> >>>>    #include "statslib.h" //this doesn't work
> >>>>    #include<contrib.h>   //this 
> doesn't work
> >>>>    #include<statsLib.h>   
> //this doesn't work
> >>>>    #include<statslib.h>   
> //this doesn't work
> >>>>
> >>>>The errors are always similar to
> >>>>  seeds_test.cpp:1:43: error: statslib.h: No such file 
> or directory
> >>>>
> >>>>I am using the most recent svn version of ADMB.
> >>>>
> >>>>cheers,
> >>>>Mollie
> >>>>
> >>>>Mollie Brooks
> >>>>Ph.D. Candidate
> >>>>NSF IGERT Fellow
> >>>>Biology Department
> >>>>University of Florida
> >>>>mbrooks at ufl.edu
> >>>>http://people.biology.ufl.edu/mbrooks
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>_______________________________________________
> >>>>Users mailing list
> >>>>Users at admb-project.org
> >>>>http://lists.admb-project.org/mailman/listinfo/users
> >>>>
> >>>-- 
> >>>John Sibert
> >>>Emeritus Researcher, SOEST
> >>>University of Hawaii at Manoa
> >>>
> >>>Visit the ADMB project http://admb-project.org/
> >>>
> >>>
> >>
> >
> 
> _______________________________________________
> 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/20120104/ad023e88/attachment.html>


More information about the Users mailing list