Very Elementary Question...Include Files

Hi, after many years away from Fortan I am tying to learn how to take advantage of the NVIDIA C2050 I have in my computer. I want to be able to interrogate the card and be able to obtain basic information about it. If I understand, I need to use the library routines available. I have written this little test program, but I keep getting the error below.

! Fortran Console Application
! Generated by PGI Visual Fortran®
! 1/2/2011 11:55:14 AM

program prog

implicit none
include “C:\Program Files\PGI\win64\10.9\include\accel_lib.mod”

print *,“Attempting to install Library files”

end program prog

Error 1 Unable to open include file: C:\ProgramFiles\PGI\win64\10.9\include\accel_lib.mod C:\Users\Howard\Documents\Visual Studio 2010\Projects\TestAcceleratorCallsPVFProject2\TestAcceleratorCallsPVFProject2\ConsoleApp.f90 12

The actual path is “Program Files” with the space, but the error message shows no space between the words.

My basic question: Is this the proper way to handle the library files? I have checked the path many times, so I don’t know what to do next.

Thanks for any help you can give me for this elementary question.


Hi Howard,

For modules, you use a “use module_name” statement. For example:

program prog

implicit none
use accel_lib

print *,"Attempting to install Library files"

end program prog

Hope this helps,