<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Did this ever get resolved? I can't figure out how to use the contributed code any more.<div>I've tried</div><div><div>#include <contrib.h><span class="Apple-tab-span" style="white-space:pre"> </span></div><div><span class="Apple-tab-span" style="white-space:pre">#include <Users/molliebrooks/admb−trunk/contrib/statlib/dnbinom_eco.cpp>
</span></div><div><span class="Apple-tab-span" style="white-space:pre"><br></span></div><div>The second one used to work. The files are still in that location, but it doesn't work. How should I do this?<br><br>thanks,</div><div>Mollie</div><div><br class="webkit-block-placeholder"></div>
<br><div><div>On 3 Aug 2011, at 12:43 AM, bigA wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Just out of curiosity, why not have a second package for user contributed code? Then as individual users want to extend their personal library of admb functions they would already have a standardized build process with a make file already started to build from. It could also help establish some coding conventions, across different user's contributed code, and a coherent way for users to include documentation with the functions they submit. Finally it could also be useful to ensure that credit is given to those who contribute; admb is an open source project and it is nice make sure that people's names are on their work. I would be willing to help with this, but I want to know how the admb establishment feels.<div>
Aaron<br><br><div class="gmail_quote">On Tue, Aug 2, 2011 at 7:58 PM, Steve Martell <span dir="ltr"><<a href="mailto:s.martell@fisheries.ubc.ca">s.martell@fisheries.ubc.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I think Johnoel's idea of a contrib.lib and contrib.h would work best, and the end user would still have to have put #include <contrib.h> in the GLOBALS_SECTION. I'm hesitant to modify the existing makefiles to have the buildbot include the contributed code in the builds, so I did not do this. It should be possible, however, to create a makefile in the contrib directory that would build the contrib.lib and put this in the lib directory of the build. Makefiles are pretty new to me so I'd need some help on this one.<br>
<font color="#888888"><br>
Steve<br>
</font><div><div></div><div class="h5">On 2011-08-02, at 2:02 PM, Johnoel Ancheta wrote:<br>
<br>
> I may have a easy solution, but will need to test. It involves creating a contrib.lib and contrib.h that<br>
> gets built with admb. Easier for the end user...<br>
><br>
> On 8/2/11 10:48 AM, Mark Maunder wrote:<br>
>> John,<br>
>><br>
>> I thought that the idea was to have the contributed code compiled in the libraries, but not include the #include statement somewhere so that the user had to physically put the include statement in their tpl (similar to how an R user has to physically load the library). The messy part is having to use the whole path to the code and not just the name of the library<br>
>><br>
>> Mark<br>
>><br>
>> -----Original Message-----<br>
>> From: <a href="mailto:developers-bounces@admb-project.org">developers-bounces@admb-project.org</a> [mailto:<a href="mailto:developers-bounces@admb-project.org">developers-bounces@admb-project.org</a>] On Behalf Of John Sibert<br>
>> Sent: Tuesday, August 02, 2011 1:41 PM<br>
>> To: <a href="mailto:developers@admb-project.org">developers@admb-project.org</a><br>
>> Subject: Re: [Developers] FW: myxomatosis example<br>
>><br>
>> Well including stuff in the GLOBALS_SECTION does not seem particularly messy, Dave is correct the usual way is with a header file and a library.<br>
>><br>
>> The practical question is how are the libraries assembled? Each OS/architecture/compiler combination brings unique problems. That is why we have the buildbot for the ADMB code. It might be feasible to include the contributed contribted code, but in my opinion the ADMB Project should not be responsible for maintenance of user-contributed code.<br>
>> Could we ask code contributors to create an appropriate header file and a makefile to create a library for their code? If so then users of the contributed code would have the option of either including the source code in the tpl or customizing the makefile to build libraries appropriate to their system.<br>
>><br>
>> John<br>
>><br>
>> On 08/01/2011 02:08 PM, dave fournier wrote:<br>
>>> On 11-08-01 04:15 PM, Mark Maunder wrote:<br>
>>><br>
>>> The usual way is to include a header file and then to link in a<br>
>>> library with the compiled code.<br>
>>><br>
>>>> Can anyone give advice on how to include user contributed libraries<br>
>>>> in the Globals section. This looks too messy. Can't you just do<br>
>>>> "#include ecolib"<br>
>>>><br>
>>>> Thanks,<br>
>>>><br>
>>>> Mark<br>
>>>><br>
>>>> *From:*Mollie Brooks [mailto:<a href="mailto:mbrooks@ufl.edu">mbrooks@ufl.edu</a>]<br>
>>>> *Sent:* Monday, August 01, 2011 4:03 PM<br>
>>>> *To:* Mark Maunder<br>
>>>> *Subject:* myxomatosis example<br>
>>>><br>
>>>> Hi Mark,<br>
>>>><br>
>>>> I did an example from Ben's book. I'm also working on another one.<br>
>>>> This one requires a vectorized version of the dgamma function which I<br>
>>>> just added to Steve's statlib on the svn. I'd like any suggestions<br>
>>>> you might have, especially on the globals section. I think the<br>
>>>> developers should have a talk about making it as easy as possible for<br>
>>>> users to include libraries from the contrib directory. Maybe these<br>
>>>> should get moved to the include directory automatically when we<br>
>>>> compile. Also, the library pow_vectorized_RE should probably be<br>
>>>> incorporated into the core source.<br>
>>>><br>
>>>> I did it using R2admb which currently doesn't work for windows, but<br>
>>>> I'm hoping Ben will have it working later this month.<br>
>>>><br>
>>>> cheers,<br>
>>>><br>
>>>> Mollie<br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> Developers mailing list<br>
>>>> <a href="mailto:Developers@admb-project.org">Developers@admb-project.org</a><br>
>>>> <a href="http://lists.admb-project.org/mailman/listinfo/developers" target="_blank">http://lists.admb-project.org/mailman/listinfo/developers</a><br>
>>><br>
>>> _______________________________________________<br>
>>> Developers mailing list<br>
>>> <a href="mailto:Developers@admb-project.org">Developers@admb-project.org</a><br>
>>> <a href="http://lists.admb-project.org/mailman/listinfo/developers" target="_blank">http://lists.admb-project.org/mailman/listinfo/developers</a><br>
>> --<br>
>> John Sibert<br>
>> Emeritus Researcher, SOEST<br>
>> University of Hawaii at Manoa<br>
>><br>
>> Visit the ADMB project <a href="http://admb-project.org/" target="_blank">http://admb-project.org/</a><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Developers mailing list<br>
>> <a href="mailto:Developers@admb-project.org">Developers@admb-project.org</a><br>
>> <a href="http://lists.admb-project.org/mailman/listinfo/developers" target="_blank">http://lists.admb-project.org/mailman/listinfo/developers</a><br>
>> _______________________________________________<br>
>> Developers mailing list<br>
>> <a href="mailto:Developers@admb-project.org">Developers@admb-project.org</a><br>
>> <a href="http://lists.admb-project.org/mailman/listinfo/developers" target="_blank">http://lists.admb-project.org/mailman/listinfo/developers</a><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@admb-project.org">Users@admb-project.org</a><br>
> <a href="http://lists.admb-project.org/mailman/listinfo/users" target="_blank">http://lists.admb-project.org/mailman/listinfo/users</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@admb-project.org">Users@admb-project.org</a><br>
<a href="http://lists.admb-project.org/mailman/listinfo/users" target="_blank">http://lists.admb-project.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@admb-project.org">Users@admb-project.org</a><br>http://lists.admb-project.org/mailman/listinfo/users<br></blockquote></div><br></div></body></html>