[Developers] Developers Digest, Vol 37, Issue 6

Matthew Supernaw matthew.supernaw at noaa.gov
Tue Mar 20 06:02:24 PDT 2012


Dave,

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:

"-DUSE_LAPLACE  -I../df1b2-separable -I../nh99 -I../linad99 -I../tools99
-D__SPDLL__ -D__GNUDOS__ -Dlinux"

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.


Matthew
matthew.supernaw at noaa.gov

On Mon, Mar 19, 2012 at 3:00 PM, <developers-request at admb-project.org>wrote:

> Send Developers mailing list submissions to
>        developers at admb-project.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.admb-project.org/mailman/listinfo/developers
> or, via email, send a message with subject or body 'help' to
>        developers-request at admb-project.org
>
> You can reach the person managing the list at
>        developers-owner at admb-project.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Developers digest..."
>
>
> Today's Topics:
>
>   1. compiling ADMB with clang (dave fournier)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 18 Mar 2012 15:26:03 -0700
> From: dave fournier <davef at otter-rsch.com>
> To: "'developers at admb-project.org'" <developers at admb-project.org>
> Subject: [Developers] compiling ADMB with clang
> Message-ID: <4F6660FB.6080303 at otter-rsch.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> I tried to compile ADMB with clang.  After a few files the make crashed
> with the message
>
>      fatal error: 'fstream' file not found
>
>
> There appear to be header file problems.  Has anyone successfully used
> clang to compile ADMB?
>
> clang -v outputs
>
> clang version 2.8 (branches/release_28)
> Target: x86_64-pc-linux-gnu
> Thread model: posix
>
>
>
>            Dave
>
>
> ------------------------------
>
> _______________________________________________
> Developers mailing list
> Developers at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/developers
>
>
> End of Developers Digest, Vol 37, Issue 6
> *****************************************
>



-- 
Matthew Supernaw
Scientific Programmer
*National Oceanic and Atmospheric Administration*
National Marine Fisheries Service
Sustainable Fisheries Division
St. Petersburg, FL, 33701
Phone 727-551-5606
Fax 727-824-5300
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/developers/attachments/20120320/93e3b574/attachment.html>


More information about the Developers mailing list