- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all!!
I need help because I'm writing a program and I want to include a includefile.inc. (var.inc)
which is: integer i,j,n,m
parameter (n=6, m=9)
common/var/ i,j
I included it in this way: Project-->Settings-->Fortran ; in this windows I choose in "category": preprocessor and I wrote in "include and use path" : var.inc
The problem is that the program said to me that it can'tinclude this includefile and then it creates other errors.
What do I have to do??Could you help me, please??
thank you very much
Cri
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to add to your source file at the place you want this included, the line:
INCLUDE 'var.inc'
The project setting you looked at is to tell the compiler in what directories to look for include files. For that setting, you are supposed to put directory paths only, not full file names. By default, the compiler looks in the same directory as the source file with the INCLUDE line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much for your help!!!

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page