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