[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #BBC-202504]: netCDF General - Compiling Small C++ program
- Subject: [netCDF #BBC-202504]: netCDF General - Compiling Small C++ program
- Date: Mon, 09 Jul 2007 08:30:39 -0600
> Institution: UNC Charlotte
> Package Version: 3.6.2
> Operating System: RedHat Linux
> Hardware Information: Dell Optiplex
> Inquiry: Hello!
>
> I am an undergrad working on a research project here and part of my project
> requires me to make a conversion program to extract certain parts of our
> netCDF format air quality data and so we can run them through our volume
> renderer.
>
> I have written a program to test some netCDF functions on my machine but run
> into problems during linking. I am not able to install to /usr/local.
>
> My attachments include:
> 1) My simple test program.
> 2) The netCDF directory.
> 3) The current error I have during compile.
>
> I'm thankful for any help you can give!
> -Lane Harrison
>
>
>
Howdy Lane!
As you can see from your output:
ncvalues.h:16:20: netcdf.h: No such file or directory
It is not finding the netcdf.h file. You need to include it on your command
line, with the -I option, like this:
-I/home/ltharri1/Desktop/netcdf-3.6.2/libsrc
Good luck!
Ed
Ticket Details
===================
Ticket ID: BBC-202504
Department: Support netCDF
Priority: Normal
Status: Closed