Hello,
I am new to absoft and am trying to compile a program (using a makefile) that uses netcdf. I have the netcdf libraries in my /usr/local/lib directory, and netcdf.mod in /usr/local/include.
In the subroutines that involve netcdf, I have a "use netcdf" statement at the beginning of the subroutine.
When I type make, I get the following error:
-------------------------------------------------------
MODULE netcdf_util
^
cf90-855 af90fe: ERROR NETCDF_UTIL, File = netcdf_util.f, Line = 5, Column = 9
The compiler has detected errors in module "NETCDF_UTIL". No module information file will be created for this module.
use netcdf
^
cf90-292 af90fe: ERROR NETCDF_UTIL, File = netcdf_util.f, Line = 18, Column = 13
"NETCDF" is specified as the module name on a USE statement, but the compiler cannot find it.
if (ncerr /= NF_NOERR) then
^
cf90-297 af90fe: ERROR HANDLE_ERROR, File = netcdf_util.f, Line = 45, Column = 22
IMPLICIT NONE is specified in the host scope, therefore an explicit type must be specified for data object "NF_NOERR".
-------------------------------------------------------
I am compiling with -L/usr/local/lib -lnetcdf
and -I /usr/local/include -p /usr/local/include
I've also tried adding includes and libs from the Absoft directory in my applications folder but this doesn't seem to help ...
What do I need to do for the compiler to see my netcdf module in the included directory? There is another module in there used by other subroutines that I am having similar issues with.
Is there a way to attach files here ... if so I'll add my makefile but if not I can email it if anyone thinks they can help.
Thank you!
Anna