[ADMB Users] ADMB on mac os 10.7.3

73 views
Skip to first unread message

Curry Cunningham

unread,
May 20, 2012, 9:01:09 PM5/20/12
to ADMB
Hello ADMB users,

I recently updated my mac os to 10.7.3 (lion) and now I cannot compile my .tpl files without getting the following message:

*** Parsing: tpl2cpp simple

*** Compiling: CXXFLAGS="-m64" adcomp simple
g++ -c -O3 -Wno-deprecated -DOPT_LIB -D__GNUDOS__ -Dlinux -DUSE_LAPLACE -fpermissive -I. -I/usr/local/admb/include -m64 simple.cpp
/usr/local/admb/bin/adcomp: line 38: g++: command not found

Error: Failed to build executable.

However when I type in the 'admb' command I get:

Usage: admb [-d] [-g] [-r] [-s] model

Build AD Model Builder executable from TPL.

-d Create DLL
-g Insert debugging symbols
-r Create ADMB-RE
-s Enforce safe bounds
model Filename prefix, e.g. simple

Has anyone been able to successfully compile and build ADMB projects with OS 10.7.3 through Xcode 3.2.5?

Any suggestions would be greatly appreciated,

Curry J. Cunningham
School of Aquatic and Fishery Sciences,
University of Washington
(907) 360.4217


_______________________________________________
Users mailing list
Us...@admb-project.org
http://lists.admb-project.org/mailman/listinfo/users

Arni Magnusson

unread,
May 21, 2012, 6:55:04 AM5/21/12
to Curry Cunningham, ADMB
Hi Curry,

The error message

g++: command not found

sounds like the g++ command is not in your path. This means that your C++
compiler is not properly (if at all) set up.

There is one test before compiling simple.tpl, and that is to compile
hello.cpp.

Arni

Johnoel Ancheta

unread,
May 21, 2012, 12:23:18 PM5/21/12
to Arni Magnusson, ADMB
You need to install XCode for the MacOS which is free.

Curry Cunningham

unread,
May 21, 2012, 12:50:40 PM5/21/12
to Johnoel Ancheta, ADMB
Thank you very much for your insights.
As it turns out MacOS 10.7.3 (lion) does not run the previous version of Xcode 3.2.5, and the more recent Xcode 4.3.2 must be installed (free from mac developer website). However, this does not come with the gcc compiler which must be downloaded as an add-on after installation from the preferences menu.

This was an Xcode problem rather than an ADMB difficulty, and everything compiles, builds and runs correctly.

Cheers,
Reply all
Reply to author
Forward
0 new messages