Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

Pretty Basic Stuff

boyd_georgebp_com
2,568 Views
Embarassingly simple probably. "Old" code, compiled and executed in vs on ibm mainframe now moving to windows. i get error statements on a simple type delcaration statement "INTEGER VarName", error statement being syntax error expecting end of statement. can anyone identify with that? i've tried several differnt ways of saying the same thing, like implicit statements and the like. still no dice.
0 Kudos
23 Replies
Steven_L_Intel1
Employee
417 Views
The only thing you are missing is that you have incorrectly saved the file with a .f90 file type. Change it to .for and you'll be fine.
0 Kudos
boyd_georgebp_com
417 Views
Boyd,

While it is true that if you create a new Fortran source file in Visual Studio it selects .f90 as the file type by default, you can change that to a .for by retyping the name. Once you have the file in the project, the name does not get changed.

You can simply click twice on the file name in Solution Explorer and change the name to have a .f90 file type.

This is indeed the problem. it has compiled error free and i'm off to the races.

Thanks to you and to david and for the great debug tip too. i've no idea where the .f90 file came from other than your observation that is the default on new project creation. i'll be on my toes hence.
0 Kudos
Steven_L_Intel1
Employee
417 Views
Glad to hear it. In a future version, you'll be offered the choice of both free-form (.f90) and fixed-form (.for) files in the "new file" dialog.
0 Kudos
Reply