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

Case sensitivity issue

Ibrahim_A_
Novice
1,274 Views

I am running Intel fortran in Visual Studio. The code used to be case- insensitive, but it accidently changed to be case-sensitive now. I may have changed something in the settings. How can I turn it back to case-insensitive?

0 Kudos
1 Solution
Steve_Lionel
Honored Contributor III
1,258 Views

There is a compiler option /names. If you changed it to /names:as_is, you'll see that behavior. Remove the option. (My usual advice is to never use /names - if you need to adjust for case-sensitive external names, use BIND(C,NAME=) or an interface block with !DEC$ ATTRIBUTES ALIAS.)

View solution in original post

0 Kudos
10 Replies
Steve_Lionel
Honored Contributor III
1,259 Views

There is a compiler option /names. If you changed it to /names:as_is, you'll see that behavior. Remove the option. (My usual advice is to never use /names - if you need to adjust for case-sensitive external names, use BIND(C,NAME=) or an interface block with !DEC$ ATTRIBUTES ALIAS.)

0 Kudos
Ibrahim_A_
Novice
1,145 Views

How can I access the names option in visual studio? I have searched it but I couldn't find it.

0 Kudos
Arjen_Markus
Honored Contributor I
1,139 Views

If you open the Properties for a project or a particular source file, select the tab External Procedures - the Name Case Interpretation option is the one you want. Set it to Default.

0 Kudos
Ibrahim_A_
Novice
1,136 Views

/names is set to default but the code throws an error if the case is not matching.

0 Kudos
Arjen_Markus
Honored Contributor I
1,133 Views

Can it be that some part of the code has been compiled with /names set to some other value? Or are you calling C functions?

0 Kudos
Steve_Lionel
Honored Contributor III
1,130 Views

In the project properties, go to Fortran > Command Line. Is anything showing under Additional Options? If so, remove it. Make sure you are looking at the current configuration that you are building.

If /names shows under All Options, you have it set somewhere in the project.

0 Kudos
Ibrahim_A_
Novice
1,130 Views

The value of /names is the default in the other parts of the.

Yes, I'm using interoperable C calls in this code.

0 Kudos
Arjen_Markus
Honored Contributor I
1,127 Views

Then you should be aware that the names of C Functions are case-sensitive and the names of Fortran routines (in general) are not. As Steve suggested, use the BIND(C,name="...") attribute to bridge the naming confusion between C and Fortran.

0 Kudos
Ibrahim_A_
Novice
1,119 Views

Steve,

I had /fpe-all:0 in the additional options. When I removed it, the code is still case-sensitive.

@Arjen_Markus ,

I had the interoperable calls commented out to deactivate them, but the code is still case-sensitive.

0 Kudos
Steve_Lionel
Honored Contributor III
1,102 Views

The /fpe-all is fine. Please attach a zip of 1) the source where the bad reference occurs, 2) the buildlog.htm from a rebuild of the project (in the debug or release folder, 3) the .vfproj file.

0 Kudos
Reply