- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I am building a Fortran 77, 32 bit static library application on a 64 bit windows machine. The compiler is vs. 11.0.072. When building from the command prompt using a make file, the name decoration (underscore prefix) is missing. This library is called from C using the C calling convention (_decl or /Gd). The fortran build options are shown below. In the mean time I have been able to build the library correctly (with underscore prefix decoration) with a visual studio project (intel compiler).
FC_LIB_OPTIONS = /c /O2 /Ot -D_WIN32 /Qdiag-disable:2259,177 /assume:byterecl /iface:default \\
/nologo /integer-size:32 /debug:full /Zp16
Any suggestions on how to get the make file build to generate the correct decorated names ???
Thanks in advance, John McElhaney
FC_LIB_OPTIONS = /c /O2 /Ot -D_WIN32 /Qdiag-disable:2259,177 /assume:byterecl /iface:default \\
/nologo /integer-size:32 /debug:full /Zp16
Any suggestions on how to get the make file build to generate the correct decorated names ???
Thanks in advance, John McElhaney
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
See the description of the /assume:[no]underscore option in the Intel Fortran User Guide. If in a hurry, try ifort/help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Thanks for the response. the /assume option applies to appending an underscore to the end of the function name. The name decoration prefixes the underscore. After some surfing on the internet, I found an intel source that says that this has been known to happen.Perhaps the compiler just gets hung up because the 32 bit app is being built on an x64 architecture. Strange though that it correctly generates the name decoration when building inside of visual studio.
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