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

How to create a 32-bit DLL on a 64-bit machine

ersungur
Beginner
534 Views

I am using Windows operating system on a 64-bit machine, and have Intel Visual Fortran v10.1.011 compiler. I have a Fortran project having 32-bit objects and a source code. I want to create a 32-bit dll out of this project. Is this possible? If yes, how?

PS: I tried to create a 32-bit dll; however, got errors during the compilation pointing that 32-bit objects are not recognized. It looks like some configuration settings need to be changed in Intel Visual Fortran.

0 Kudos
1 Solution
Steven_L_Intel1
Employee
534 Views

The default is to build a 32-bit application - you have to go through several steps to build for 64-bit. My guess is that you made some manual changes that changed the "Win32" platform into using 64-bit components.

Go to Tools > Options > Intel Visual Fortran > Compilers. Click "Reset All".

Now open your DLL project, make sure that the solution platform (Displayed to the right of "Debug" or "Release") is "Win32" and rebuild.

It occurs to me that 10.1 may not have had this tool setting - I no longer have that installed so I don't know for sure. It may be similar.

View solution in original post

0 Kudos
1 Reply
Steven_L_Intel1
Employee
535 Views

The default is to build a 32-bit application - you have to go through several steps to build for 64-bit. My guess is that you made some manual changes that changed the "Win32" platform into using 64-bit components.

Go to Tools > Options > Intel Visual Fortran > Compilers. Click "Reset All".

Now open your DLL project, make sure that the solution platform (Displayed to the right of "Debug" or "Release") is "Win32" and rebuild.

It occurs to me that 10.1 may not have had this tool setting - I no longer have that installed so I don't know for sure. It may be similar.
0 Kudos
Reply