[ADMB Users] include contrib
Mollie Brooks
mbrooks at ufl.edu
Tue Jan 3 17:32:38 PST 2012
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/
>
>
More information about the Users
mailing list