Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xlf and netcdf



>I'm having trouble linking a program with netcdf using xlf.
>The netcdf routines are all flagged as undefined when I link with
>netcdf.a and netcdf_c++.a.
>I have tried with and without the -qextname flag which just
>determines whether or not the undefined symbols have a trailing
>underscore.

Malcolm,

It might help to list which subroutines it can't find along with any other error message.  It works for me with

 -L/sw/lib -lg2c -lnetcdf

so it might be as simple as using the -L option to set the right path. The g2c library may not be needed.  I do use the -qextname option for the subroutine that makes calls to netcdf.  So if my subroutine is "save3d" I have to call it as "save3d_" 

Good luck,

-- Ted

-- 
__________________________________________________________
| Edward Mansell, Ph.D. <email@hidden> or <email@hidden>
| CIMMS/University of Oklahoma/National Severe Storms Lab
| 1313 Halley Circle
| Norman, OK 73069
| (405) 366-0590    http://www.cimms.ou.edu/~mansell
|_________________________________________________________
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Fortran-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/fortran-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.