- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a problem.
A fortran77 project (a main program+32 subroutines),many subs contain include'XFOIL.INC'![](file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/LD_%60J@T_7HN%25LLXUYEZTK~W.jpg)
And the folders havethe file:XFOIL.INC
![](file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/30H4C)QAKT(%256MHM~77OG3P.jpg)
bUT when I compile them,many errors.
I believe the program is right.
I want to know how to use the *.inc file
Thanks!
A fortran77 project (a main program+32 subroutines),many subs contain include'XFOIL.INC'
![](file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/LD_%60J@T_7HN%25LLXUYEZTK~W.jpg)
And the folders havethe file:XFOIL.INC
![](file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/30H4C)QAKT(%256MHM~77OG3P.jpg)
bUT when I compile them,many errors.
I believe the program is right.
I want to know how to use the *.inc file
Thanks!
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If what you are compiling is Mark Drela's airfoil calculation software, I can vouch for its capabilities, having used it for years (not recently).
You do not "use" .inc files in any manner except that intended by the author of the program. You never compile them, because they do not contain code that constitutes a compilable unit. Let the compiler read the INCLUDE directives from the .f (or .for or .f90) source files and do its job.
In short, use the makefile (or project specification file) to build the application, and leave the .INC files alone.
The only time when you change the contents of .INC files may be when you want to change the size/type of problems that the package addresses, and the software documentation should tell you how to make these changes.
You do not "use" .inc files in any manner except that intended by the author of the program. You never compile them, because they do not contain code that constitutes a compilable unit. Let the compiler read the INCLUDE directives from the .f (or .for or .f90) source files and do its job.
In short, use the makefile (or project specification file) to build the application, and leave the .INC files alone.
The only time when you change the contents of .INC files may be when you want to change the size/type of problems that the package addresses, and the software documentation should tell you how to make these changes.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If what you are compiling is Mark Drela's airfoil calculation software, I can vouch for its capabilities, having used it for years (not recently).
You do not "use" .inc files in any manner except that intended by the author of the program. You never compile them, because they do not contain code that constitutes a compilable unit. Let the compiler read the INCLUDE directives from the .f (or .for or .f90) source files and do its job.
In short, use the makefile (or project specification file) to build the application, and leave the .INC files alone.
The only time when you change the contents of .INC files may be when you want to change the size/type of problems that the package addresses, and the software documentation should tell you how to make these changes.
You do not "use" .inc files in any manner except that intended by the author of the program. You never compile them, because they do not contain code that constitutes a compilable unit. Let the compiler read the INCLUDE directives from the .f (or .for or .f90) source files and do its job.
In short, use the makefile (or project specification file) to build the application, and leave the .INC files alone.
The only time when you change the contents of .INC files may be when you want to change the size/type of problems that the package addresses, and the software documentation should tell you how to make these changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank youvery much!
As you say,I used the Mark Drela's airfoil calculation software [XFOIL 6.96,which is complied by IVF9.0]
Now I'd like to run it in IVF11.1. The diag below is all the files.
![](file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/~06J%7B_@SG2$8OQS8G6ZZZTB.jpg)
I will try your method to compile it!
Thank you!
As you say,I used the Mark Drela's airfoil calculation software [XFOIL 6.96,which is complied by IVF9.0]
Now I'd like to run it in IVF11.1. The diag below is all the files.
![](file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/~06J%7B_@SG2$8OQS8G6ZZZTB.jpg)
I will try your method to compile it!
Thank you!
![](/skins/images/872293744008A34B36F8ABF94A46CC66/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page