[ADMB Users] Compiling trouble on Mac, 10.9.4

Øigård Tor Arne tor.arne.oeigaard at imr.no
Fri Jul 25 15:39:03 PDT 2014


Hi,

Thanks to everyone for the feedback! After posting the problem I found the admb version I used before on a backup disk and copied that. Then it worked fine. Tried your solution of replacing "_Constant" with "constant" on the latest admb version and it worked well. I'll have a closer look at the API docs. 

Kind regards,
Tor Arne


________________________________________
From: Steve Martell [SteveM at iphc.int]
Sent: Friday, July 25, 2014 8:05 PM
To: John Sibert
Cc: Øigård Tor Arne; users at admb-project.org
Subject: Re: [ADMB Users] Compiling trouble on Mac, 10.9.4

The functions in the API are different than the ones listed below.  But I would urge you to examine the API docs, as the function you have below does not add any sort of quadratic penalty to the objective function that would ensure its continuous and differentiable. But not knowing the context, I'm not sure what you are trying to do.  In short, if x is involved in calculating the objective function value, you should probably use the 3 argument version of posfun that is listed in the API.

S


On Jul 25, 2014, at 10:55 AM, John Sibert <sibert at hawaii.edu> wrote:

> The function
>
> dvariable posfun (const dvariable & x,  const double  eps )
>
> is listed in the API documentation
> http://www.admb-project.org/documentation/api/qfclib_8h.html#a43865f33409bb5572e5ff457a5f5673d
>
> Suggesting that it is now part of the library and that you could omit it from your tpl
>
> John Sibert
> Emeritus Researcher, SOEST
> University of Hawaii at Manoa
> Honolulu HI (GMT-10)
> 808-294-3842 (mobile)
>
> Visit the ADMB project http://admb-project.org/
>
> On 07/24/2014 10:33 PM, Øigård Tor Arne wrote:
>> Hi,
>>
>> I’ve got some problems compiling my tpl files using admb on my mac. I had it installed on mavericks earlier without any problems, but then my machine called it a day and got a new one. Installed everything clean but when trying to compile my admb code it spits out error messages. I can compile and run the simple example without any problem. This problem never occurred before.
>>
>> It's a looong stream of error messages that comes but the very first one is the following:
>>
>> sea16.cpp:2:20: error: unknown type name '_CONST'
>>
>>   dvariable posfun(_CONST dvariable&x,const double eps)
>>
>>
>> The function was in the GLOBALS_SECTION section:
>>
>>
>> dvariable posfun(_CONST dvariable&x,const double eps)
>>
>>   {
>>
>>     if (x>=eps)
>>
>>     {
>>
>>       return x;
>>
>>     }
>>
>>     else
>>
>>     {
>>
>>       dvariable y=1.0-x/eps;
>>
>>       return eps*(1./(1.+y+y*y));
>>
>>     }
>>
>>   }
>>
>>
>> I’ve installed admb using this link which I found on the google group
>>
>> http://www.admb-project.org/buildbot/documentation/QuickStartMacOS.html<http://www.google.com/url?q=http%3A%2F%2Fwww.admb-project.org%2Fbuildbot%2Fdocumentation%2FQuickStartMacOS.html&sa=D&sntz=1&usg=AFQjCNFNL5Hh_BPpPg61RUy_1Tqq5Iu0KQ>
>>
>>
>> I also tried installing it using the svm - admb_trunk but the same thing happened.
>>
>>
>> I’m using OSX 10.9.4 and Xcode 5.1.1
>>
>>
>> I would be very grateful if you have any idea and a solution to this.
>>
>>
>> Kind regards,
>>
>> Tor Arne
>> _______________________________________________
>> Users mailing list
>> Users at admb-project.org
>> http://lists.admb-project.org/mailman/listinfo/users
>>
>
>
> _______________________________________________
> Users mailing list
> Users at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/users


________________________________

This internet e-mail message, and any files transmitted with it, contains confidential, privileged information that is intended only for the addressee. If you have received this e-mail message in error, please call us at (206) 634-1838 collect if necessary) and ask to speak to the message sender. Nothing in this e-mail or the act of transmitting it, is to be construed as a waiver of any rights or privileges enjoyed by the sender or the International Pacific Halibut Commission pursuant to the International Organizations Immunities Act, 22 U.S.C. Sec. 288 et seq.


More information about the Users mailing list