Opened 17 years ago

Closed 17 years ago

#70 closed bug (Fixed)

current version does not link to the ADM and TLM libraries when compiling

Reported by: milena Owned by: arango
Priority: major Milestone: Release ROMS/TOMS 3.1
Component: Nonlinear Version: 3.1
Keywords: Cc:

Description (last modified by arango)

The new makefile does not seem to link the proper libraries (ADM and TLM) when compiling the TLM_DRIVER or AD_SENSITVITY drivers. This is the error message I get when trying to compile the AD_SENSITIVITY.

Change History (1)

comment:1 by arango, 17 years ago

Description: modified (diff)
Resolution: Fixed
Status: newclosed

Well, this is very tricky and we are looking for a solution. The problem here is that make is failing in generate the internal macro definitions file make_macros.mk which uses cppdefs.h to select the relevant code to compile.

Your specific problem is the default make value for the $(CPP) definition. By default, GNU make sets CPP = cc -E. This is problematic in some systems. Therefore, for now, I am using cpp -P directly in makefile line 229 when defining MACROS. This is a temporary fix.

For the ROMS makefile to work, the user need to be sure that cpp can be found in any of the directories listed in environmental variable PATH. One way to know is to type which cpp at the unix prompt. Usually, cpp is located in /usr/bin, /usr/lib, or somewhere else. If you cannot find cpp at the unix prompt, you need to find out where this program is located in your computer and add it to your PATH in your unix login script (usually, .cshrc or .bashrc).

We will continue looking for a solution.

Note: See TracTickets for help on using tickets.