Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29267 Discussions

OPEN: FILE - file name missing or blank

Guilherme_S_
Beginner
1,224 Views


Hi,

I´m converting an application from Compaq Fortran to Intel Fortran and so far it is going very well (http://software.intel.com/en-us/articles/migrating-from-compaq-visual-fortran).

The only problem is with "Open" command. When I´m running the program in Debug Mode of visual studio, the console prompts the user to specify a filename. (That behavior is OK to me) When I execute the release version, the console does not prompt me to specify the filename, and the execution fails.

I have tried also to execute the release version passing the filenames as command line arguments (http://software.intel.com/en-us/node/465364) , but it is not working also. I don´t know if I am doing something wrong with the syntax, like using double quotes.... I have tried all combinations..

Can Steve Lionel help me? How can I build a release version that has the exact same behavior with Open command.?

ps: Sorry for any english mistakes...
ps2: I´m using Visual Studio 2008

0 Kudos
2 Replies
Steven_L_Intel1
Employee
1,224 Views

In the project properties with the Release configuration selected, go to Fortran > Compatibility. Set the property "Use Filenames From Command Line (PowerStation)" to Yes. You have this set in the Debug configuration but not in Release.

0 Kudos
Guilherme_S_
Beginner
1,224 Views

Exactly what I needed! Thanks

0 Kudos
Reply