For Programmers: Free Programming Magazines  


Home > Archive > Fortran > April 2006 > cannot open include file 'param.inc'









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cannot open include file 'param.inc'
bei

2006-04-17, 7:03 pm

Hi,Everyone,

I try to compile a fortran code in Microsoft VS .NET 2003 integrated
with Intel Fortran compiler 9.0.When I built the solution, I have this
error code for every subroutine which inclde the command " include
'param.inc' " .

Error: Cannot open include file 'param.inc'.

I do add the "param.inc " text file into the project.Does anyone know
what's the problem and how I can fix it?

Thank you very much!

Bei

Bernhard Enders

2006-04-17, 7:03 pm

There is no need to add the included file to your project, what you
have to check is the include path in the properties page. In VS
'Solution explorer', right click the project name and then left click
'Properties', go to 'Fortran' -> 'General' tab and then 'Additional
Include Directories' and write down the directory containing your .inc
file. Hope this helps,

Bernhard Enders.

bei wrote:
> Hi,Everyone,
>
> I try to compile a fortran code in Microsoft VS .NET 2003 integrated
> with Intel Fortran compiler 9.0.When I built the solution, I have this
> error code for every subroutine which inclde the command " include
> 'param.inc' " .
>
> Error: Cannot open include file 'param.inc'.
>
> I do add the "param.inc " text file into the project.Does anyone know
> what's the problem and how I can fix it?
>
> Thank you very much!
>
> Bei


bei

2006-04-17, 7:03 pm

Hi,Bernhard,

Thanks for you help.I add the directory of the file "param.inc" in
'Addtional Include Directtory' as a form like " D:\research\fortran "
..( It's the folder that includes the file"param.inc") .After that I
save the change and close the MV studio. Then I open it and compile
again. However,I got the same error code like before. Thanks again.

Bei

beliavsky@aol.com

2006-04-17, 7:03 pm


bei wrote:
> Hi,Bernhard,
>
> Thanks for you help.I add the directory of the file "param.inc" in
> 'Addtional Include Directtory' as a form like " D:\research\fortran "
> .( It's the folder that includes the file"param.inc") .After that I
> save the change and close the MV studio. Then I open it and compile
> again. However,I got the same error code like before. Thanks again.


Can you put a copy of "param.inc" in the same directory as your source
codes? I'd expect that to be the first place the compiler looks for an
include file.

bei

2006-04-17, 7:03 pm

Sure.All source codes are in the same directory,including the '
param.inc ' file.

beliavsky@aol.com

2006-04-18, 7:04 pm

bei wrote:
> Sure.All source codes are in the same directory,including the '
> param.inc ' file.


If your problem has not yet been resolved, I suggest asking in the
Intel Fortran Forum, the best place for Intel-specific questions --
http://softwareforums.intel.com/ids/board?board.id=5 . Developers of
the Intel compiler answer questions there.

bei

2006-04-18, 7:05 pm

Thank for the help of everyone here:)

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com