PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

C compiler cannot run C compiled programs
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
mkcolg



Joined: 30 Jun 2004
Posts: 6208
Location: The Portland Group Inc.

PostPosted: Fri May 27, 2005 3:26 pm    Post subject: Reply with quote

Hi Petero,

These functions are defined in the NetCDF file 'netcdf.inc' so the compiler is most likely not finding this file. By default, WRF 3dVar is expecting this file to be located in the '$NETCDFPATH/include' directory. This and the 'lib' directory get created when you install NetCDF after its built. Go back to the NetCDF directory and run 'make install'. You will also need to change the 'NETCDFPATH' variable in the '/home/3dvar/dat_dir/wrf3dvar/configure.3dvar' to the location where you just installed.

Note, a less correct but still works way is to go to your NetCDF directory and do the following:

Code:
mkdir lib
mkdir include
cp libsrc/libnetcdf.a. lib
cp fortran/*.inc include
cp f90/*.mod include
cp libsrc/netcdf.h include
cp cxx/ncvalues.h  include
cp cxx/netcdfcpp.h include
cp cxx/netcdf.hh include
cp cxx/libnetcdf_c++.a lib


After NetCDF is installed, go back and run './compile 3dvar'.

- Mat
Back to top
View user's profile
petero



Joined: 30 Mar 2005
Posts: 23

PostPosted: Tue May 31, 2005 10:01 am    Post subject: Reply with quote

Mat,
Thank you for your help.
I have compile the WRF 3DVAR succesfully.The problem was the installation of netcdf,instead of installing the appropriate files,it was installing the directories with same name without include the source code files. So i copy files manually and it works.
thanks,
take care.
petero.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group