Dave,<div><br></div><div>I have successfully compiled admb with clang 3.0 on Mac OS 10.5. You error message would suggest that clang cannot find the stdc++ lib. Try the following flags with clang:</div><div><div><br></div>
<div>"-DUSE_LAPLACE -I../df1b2-separable -I../nh99 -I../linad99 -I../tools99 -D__SPDLL__ -D__GNUDOS__ -Dlinux"</div><div><br></div><div>I believe the "-D__GNUDOS__ -Dlinux" are what is required for the posix thread model. If you are interested in a more detailed static analysis, use "--analyze" in addition to the above. You should be able to compile with the same make procedure as gcc. Let me know if you have anymore problems.</div>
<div> </div><div><br></div><div>Matthew <br></div><div><a href="mailto:matthew.supernaw@noaa.gov">matthew.supernaw@noaa.gov</a><br><br><div class="gmail_quote">On Mon, Mar 19, 2012 at 3:00 PM, <span dir="ltr"><<a href="mailto:developers-request@admb-project.org">developers-request@admb-project.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Developers mailing list submissions to<br>
<a href="mailto:developers@admb-project.org">developers@admb-project.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.admb-project.org/mailman/listinfo/developers" target="_blank">http://lists.admb-project.org/mailman/listinfo/developers</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:developers-request@admb-project.org">developers-request@admb-project.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:developers-owner@admb-project.org">developers-owner@admb-project.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Developers digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. compiling ADMB with clang (dave fournier)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sun, 18 Mar 2012 15:26:03 -0700<br>
From: dave fournier <<a href="mailto:davef@otter-rsch.com">davef@otter-rsch.com</a>><br>
To: "'<a href="mailto:developers@admb-project.org">developers@admb-project.org</a>'" <<a href="mailto:developers@admb-project.org">developers@admb-project.org</a>><br>
Subject: [Developers] compiling ADMB with clang<br>
Message-ID: <<a href="mailto:4F6660FB.6080303@otter-rsch.com">4F6660FB.6080303@otter-rsch.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
I tried to compile ADMB with clang. After a few files the make crashed<br>
with the message<br>
<br>
fatal error: 'fstream' file not found<br>
<br>
<br>
There appear to be header file problems. Has anyone successfully used<br>
clang to compile ADMB?<br>
<br>
clang -v outputs<br>
<br>
clang version 2.8 (branches/release_28)<br>
Target: x86_64-pc-linux-gnu<br>
Thread model: posix<br>
<br>
<br>
<br>
Dave<br>
<br>
<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>
End of Developers Digest, Vol 37, Issue 6<br>
*****************************************<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Matthew Supernaw<br>Scientific Programmer</div><div><span style="color:rgb(34,34,34);line-height:16px;font-family:arial,sans-serif"><em style="font-style:normal;color:rgb(0,0,0)">National Oceanic and Atmospheric Administration</em></span></div>
<div><font face="arial, sans-serif"><span style="line-height:16px">National Marine Fisheries Service<br></span></font>Sustainable Fisheries Division<br>St. Petersburg, FL, 33701<br>Phone 727-551-5606<br>Fax 727-824-5300</div>
<br><br>
</div></div>