[MITgcm-support] C problem in MITgcm
Ed Hill
ed at eh3.com
Sat Jul 10 07:41:44 EDT 2004
On Sat, 2004-07-10 at 04:27, Amitabh Mitra wrote:
> Dear Sir,
> I want to install the MITgcm on HP-UX .
> The genmake2 file is taking by default
> C++ compiler command cc. Can we change
> it to any other C++ command like
> gcc , g++ or aCC on HP-UX platform ?
>
> What changes should be made may be in the optfile
> or anywhere else in the model ?
Hi Amitabh,
For now, please select the C compiler using the environment variable
"CC" which you can set with, for instance:
with the (t)csh shell: "setenv CC gcc"
with the bash/sh shells: "export CC=gcc"
and that will do what you want. In the future, we'll add more C/C++
compiler selection features to genmake and the optfiles.
Ed
--
Edward H. Hill III, PhD
office: MIT Dept. of EAPS; Rm 54-1424; 77 Massachusetts Ave.
Cambridge, MA 02139-4307
emails: eh3 at mit.edu ed at eh3.com
URLs: http://web.mit.edu/eh3/ http://eh3.com/
phone: 617-253-0098
fax: 617-253-4464
More information about the MITgcm-support
mailing list