[ADMB Users] Compiling trouble on Mac, 10.9.4

Johnoel Ancheta johnoel at hawaii.edu
Fri Jul 25 09:15:02 PDT 2014


Replace _CONST with const.


On Thu, Jul 24, 2014 at 10:33 PM, Øigård Tor Arne <tor.arne.oeigaard at imr.no>
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20140725/98c84d1d/attachment.html>


More information about the Users mailing list