<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Replace _CONST with const.</span><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 24, 2014 at 10:33 PM, Øigård Tor Arne <span dir="ltr"><<a href="mailto:tor.arne.oeigaard@imr.no" target="_blank">tor.arne.oeigaard@imr.no</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
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.<br>
<br>
It's a looong stream of error messages that comes but the very first one is the following:<br>
<br>
sea16.cpp:2:20: error: unknown type name '_CONST'<br>
<br>
dvariable posfun(_CONST dvariable&x,const double eps)<br>
<br>
<br>
The function was in the GLOBALS_SECTION section:<br>
<br>
<br>
dvariable posfun(_CONST dvariable&x,const double eps)<br>
<br>
{<br>
<br>
if (x>=eps)<br>
<br>
{<br>
<br>
return x;<br>
<br>
}<br>
<br>
else<br>
<br>
{<br>
<br>
dvariable y=1.0-x/eps;<br>
<br>
return eps*(1./(1.+y+y*y));<br>
<br>
}<br>
<br>
}<br>
<br>
<br>
I’ve installed admb using this link which I found on the google group<br>
<br>
<a href="http://www.admb-project.org/buildbot/documentation/QuickStartMacOS.html" target="_blank">http://www.admb-project.org/buildbot/documentation/QuickStartMacOS.html</a><<a href="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" target="_blank">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</a>><br>
<br>
<br>
I also tried installing it using the svm - admb_trunk but the same thing happened.<br>
<br>
<br>
I’m using OSX 10.9.4 and Xcode 5.1.1<br>
<br>
<br>
I would be very grateful if you have any idea and a solution to this.<br>
<br>
<br>
Kind regards,<br>
<br>
Tor Arne<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>
</blockquote></div><br></div>