- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I got a new PC and am trying to install the Latest Visual Studio and latest Fortran compiler. I got VS 2022 installed but was not sure what options I needed. I D/L intel-oneapi-hpc-toolkit-2025.0.1.48_offline.exe and installed it. I opened the VS2022 and tried to load an old .SLN project and it came up. I went to build and it tells me I am missing Win32.
My old PC has Parallel Studio XE 2020 Composer Edition for Fortran Windows and VS2017.
I'm trying to figure out how to get the Win32 for the newer VS2022 so I can compile my ancient Fortran code.
I think I can find the install EXE's on my old PC and install what I had, but wanted to try to get the newer versions working.
TIA
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
intel-oneapi-hpc-toolkit-2025.0.1.48
Has IFX only that is 64 bit and not IFORT that has 32 bit.
Your old code will compile with IFX as long as it is pretty straightforward Fortran, if you have a lot of exotic stuff you may run into one or two problems. Report them here.
I would start with a new .sln in a different directory and add your code to that slowly.
IFX is not too bad and one presumes that it will get a lot better.
The question is not should we move from 32 to 64 when we moved from 16 to 32 a long time ago (ie before 35% of all current citizens were born) why are we not able to use 128 bit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Which other oneapi toolkit would have IFORT and Win32? I think I had it on my old PC but usually used VS2017 to work on my Fortran programs.
I learned Fortran IV in 1968 in my sophomore year of college engineering and still use a lot of very old coding techniques. I had some computed GOTO statements in some old code.
I'm tempted to install my old VS2017 and old Parallel Studio to get back what I am familiar with.
I struggle with compiling the old code and need to figure out how to ask the user to select an input file from a drop down. I'm a structural engineer and write code for myself and a few collogues to use. My "user manuals" are generally to look at the READ statements and see what Format I used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why do you think you need 32-bit? The only thing I can think of is that you've mistakenly used INTEGER(4) for things that are addresses or handles in Windows API interfaces.
Take a look at the attached sample program for file selection.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Dr Fortran,
When I tried to compile my old .SLN I got the error message that I needed the Win32. I think it is attached below. I'll try to post a little bit of my old code below where I declare Real and Integers. Getting a new PC is nice but having to reinstall all the old programs I use is terrible.
C THIS SUBROUTINE WILL DESIGN SEVERAL BASE PLATES THAT WILL WORK FOR A POLE FOR ASCE 113 METHODS
C ON 6-10-2020 I CHANGED THE BASE PLATE MATERIAL TO A572 Fy = 50 KSI and >4 to 42ksi
C ON 5-27-2022 I ADDED THE ASCE 113 BOLT BENDING UNITY CHECKS
C ON 2-25-2024 I ADDED VERBOSE MODE TO PRINT INTERMEDIATE RESULTS
C ON 10-10-24 I ADDED THE FOUNDATION REACTIONS
C ON 10-13-24 I ADDED THE BOLTS ON THE 0 DEGREE AXIS SO THERE ARE 2 SETS OF PLATES DESIGNED NOW
C
SUBROUTINE PLATE (MY,MX,VLOAD,VX,VY,AF,THK,NSIDES,orient)
C
C THIS SUBROUTINE DESIGNS THE BASE PLATE AND ANCHOR BOLTS FOR ASCE 113 BOLT UNITY EQUATIONS
C
C
REAL IBLT,IXX,IYY,MX,MY,IBLTS,gapmax,TPI,FUTA,M0,MN,PHIA,PHIV,VNM,
+ VUA,NN,VN,MOMARM,HOLE,TW,LRGD,H113,VX,VY,A45,MOMRES
real :: listdia(19) = [0.75,0.875 , 1.000, 1.125, 1.250, 1.375,
+ 1.500, 1.625,
+ 1.750, 1.875, 2.000, 2.250, 2.500, 2.750, 3.000, 3.250, 3.500,
+ 3.750, 4.000 ]
real :: holedia(19) = [0.9375 ,1.0625, 1.25,1.4375,1.5625,1.6875, ! Hole sizes
+ .8125,1.9375,
+ 2.0625,2.1875,2.3125,2.5625,2.8125,3.0625,3.3125,3.5625,3.8125, ! THE HOLE SIZE IS DIA + 5/16 FOR GREATER THAN 1" BOLT
+ 4.0625,4.3125 ]
real :: TWASH(19)=[.122, .122, 0.136,.136,.136,.136,.136,0.178, ! FROM 113 THIS IS THE THICKNESS OF THE WASHER, THESE ARE MINIMUM FOR F436
+ .178,.178,.178,
+ 0.24,.24,.24,.24,.24,.24,.24,.24 ]
real :: NUTHT(19) = [.71,.833,.956,1.079,1.187,1.31,1.433,1.556, ! THE MINIMUM NUT HEIGHTS
+1.679,1.802,1.925,2.155,2.401,2.647,2.893,3.124,3.37,3.616,4.014]
INTEGER NUMBLT, NUMWASH, NW, verbose
character (len=1) :: orient
CHARACTER DUMMY
DIMENSION POS(2,400),SIGX(400),SIGY(400),BSTRS(400),BLOAD(400),
+DIS(400),PLM(400),DIAM(75),APBLT(75),IBLTS(75),ALLOWBL(75),FU(75)
+,TPI(75),REDIA(75),BSPACE(75),ANGLE(400),SPACE(19),NW(75),TNUT(75) ! PHIA(75),
+ ,RESB(75,11), RESNB(75,11),plmom(75),thik48(75),HOLE(75),TWSH(75) ! ,PHIV(75) ! ADDED THESE 2 RESB AND RESNB ARRAYS TO HOLD RESULTS
+ ,BSP(75)
DATA SPACE /3., 3.5, 3.75, 3.75, 4.00, 4.25, 4.50, 4.75, 5.00 ,
+ 5.25, 5.50, 6.00, 6.50, 6.75, 7.25, 7.75, 8.25, 8.75, 9.00 /
C RDIS(A,B)=SQRT(A*A + B*B) ! this is an ancient FORTRAN function definition that can be replaced by hypot(x,y)
write(10,706)
PI=4.*ATAN(1.0) ! THE VALUE OF PI IS USED SEVERAL PLACES
verbose = 0
open( 88,file='C:\PLS\TEMP\ABOLTS113.TXT',status='OLD',ERR=998) ! This is the new input file
READ(88,*,ERR=998) NUMBLT, gapmax ! ADDED GAPMAX TO THE READ statement
C ! GAPMAX IS THE NUMBER OF BOLT DIAMETERS BETWEEN T.O.C. AND BOTTOM OF BASE PLATE
if (gapmax.le.0.0) then
gapmax = -gapmax
verbose = 1 ! set the verbose mode to print intermediate results
endif
READ(88,*,ERR =998) DUMMY
WRITE (10,444) NUMBLT,gapmax
444 FORMAT(/2X,'THIS IS THE ABOLTS113.TXT INPUT FILE THAT WAS READ'/
+ ' NUMBLT IS',I3,3X,'GAPMAX IS ',F8.2/
+ 4X,'DIAM',6X,'TPI',6X,'Fy',7X,'Fu',8X,'NW',4X,'BOLT SPACING')
DO I=1,NUMBLT
READ(88,*,ERR=998)DIAM(I),TPI(I),ALLOWBL(I),FU(I),NW(I),
+ BSP(I) ! ADDED NUMBER OF WASHERS AND BOLT SPACING
WRITE(10,445)DIAM(I),TPI(I),ALLOWBL(I),FU(I),NW(I),BSP(I) ! ERROR CHECKING
445 FORMAT(4F10.4,I4,F10.2)
APBLT(I) = (PI/4.0)*(DIAM(I)-0.9743/TPI(I))**2 ! THE BOLT AREA IN THE THREADS
REDIA(I) = SQRT((4.0*APBLT(I))/PI) ! THIS IS THE REDUCED DIAMETER
IBLTS(I) = PI*((REDIA(I)**4)/64.0) ! MOMENT OF INERTIA IN THE THREADS
BSPACE(I) = BSP(I) * DIAM(I) ! LET USER INPUT THE NUMBER OF BOLT DIAMETERS. ASCE 48-19 RECCOMENDS 4 DIAMETERS
IF(NW(I) .GT. 1) THEN
WRITE(10,1012) NW(I)
1012 FORMAT (' THE NUMBER OF WASHERS ',I2,' SHOULD BE 0 OR 1'//)
ENDIF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've seen other reports of this message, but it isn't your program. It happens when you load a VS solution that has only 32-bit configurations. You should be able to fix it by selecting Build > Configuration Manager. In the dialog that comes up, select Active solution platform > New... In the New solution platform dialog, select x64 for the new platform and tell it to copy settings from Win32. That should do it.
If not, create a new VS solution and project and add your sources to it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dr Fortran,
Sorry to be late on testing. I picked up a cold and am still suffering a little. I tried the Config Mgr and get another error message about x64 support. The copy from dialog
I want to be careful and not corrupt my .FOR and f90 code files. I may try to start a new solution. My other plan is to install VS2017 and configure it like my old PC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Right click in the solution folder at the program name(IFORT) and select IFX from the compiler options at the BOTTOM of the popup box.
Make sure DEBUG says 64 and not any cpu and if you have installed it properly it will work on code from 1968. I have a lot of code from that era.
If it does not work, delete the oneapi and the VS and start again and make sure you select the correct options for VS, if you do not know select them all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi John,
Thanks for the tips. I got it to compile (finally). I found the Project Properties for the solution and selected the IFX and it seems to work. I'll have to test out the EXE once I get my Folders populated on the C: drive on this new PC. It reads a mountain of data from an XML file that I need to copy from my old PC.
It is a post processor that designs base plates for steel transmission poles based on bolt sizes it reads in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
At one point I got this oneapi compiler to run and compile my old Fortran program based on the above post. I am now trying to remember how I got it to open the Visual Studio page with my code loaded by double clicking on the .SLN file in my working folder (I think). Where is the EXE located in the c:\Program Files (x86)\Intel\oneAPI\ folders that I need to run to open the old SLN?
I'm on Win 11 on this new PC and I found there are 3 entries under the Intel oneAPI folder. There is Intel Advisor 2025.0, a command prompt , and Intel VTune Profiler 2025.0.1
The EXE used to work but for some reason, it exits the program after reading my input file, so I need to compile it and debug to see where it is going. I'll likely be back asking about breakpoints.
If I can get Admin Rights to my PC, should I just install the Visual Studio 2022 and try that interface to compile my Fortran?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The .SLN would be opened by Microsoft Visual Studio, nothing under Intel. It should be set up to do that by default once you install VS.
"C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe" is what you want to open .sln files (assumes Community Edition)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dr Fortran,
Thanks for the reply. I will probably have to install the Visual Studio 2022 on this new PC. And I'll have to figure out where I put the Fortran compiler unless it comes in VS 2022.
I must have installed oneAPI and compiled my program with IFX. I found the BuildLog.HTM from after I did the install, so it worked at one point. I tried to attach it, but the system did not like HTM extensions, so I saved it as .TXT. I also attached a screen shot of the 3 things that are on the Start Menu or whatever Win11 calls it.
It looks like the VS2022 was deleted because it complains that it can't be found. I was just trying to open oneAPI and maybe bring in my FOR and F90 files and create a new solution to compile and debug. I used the top Icon and got the Intel Advisor 2025.0 window to open and I hit the create Project button and get another window, but I have no idea what I am doing. It looks way different than the Visual Studio I was used to working in. I mostly understood how to navigate VS 2017. I was looking at IFX and the capability to run code on a GPU, but I doubt my little EXE needs that.
Thanks for looking.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please read and follow the instructions in Installing Microsoft Visual Studio* for Use with Intel® Compilers
You'll then need to rerun the Intel Fortran installer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Steve,
Thanks for the tips. I D/L the following files:
VisualStudioSetup.exe
w_ifort_runtime_p_2025.1.0.972.exe
intel-fortran-compiler-2025.1.0.602_offline.exe
intel-fortran-essentials-2025.1.0.555_offline.exe
I'm not sure which of the Intel Fortran files to use. I may also have the old XE version (Intel® Parallel Studio XE Composer Edition for Fortran Windows) on my old PC, and I could look for and install that.
I did manage to find out my error in the program. I was using an outdated input file, so I need to add more error checking to let me know what is happening. It is tough getting old and forgetful.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Install Visual Studio first, being sure to select the "C++ Desktop Development" option. Then install either the "compiler" or "essentials" download - the latter includes MKL and Intel MPI. You should not need to install the runtime package.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dr Fortran,
Thanks for all the help. I'll install the VS and then the essentials once I can get Admin Rights to my PC. I've been installing SW since we got PC's in the 1980's but now the IT Gods do not trust us. We have to call Malaysia somewhere for Tech Support to take over the desktop and supply the Admin username and PW to allow the install.
I guess I'll keep the oneAPI installed incase I get some time to figure out how it works.
I see I logged in with my other eMail address from work, but I am the original author. I was going to see how to delete a post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I installed VS 2022 and then installed the intel-fortran-essentials-2025.1.0.555_offline.exe and it seemed to install but got some errors. The following text from the logfile says something about a parent key:
04/07/2025 09:48:05:646 : 28168 : WARNING : Product configuration is not finished successfully. Integration in IDE(s) might be in incomplete state or custom post-install/remove actions might fail.
Details: Attempt 1 of 2 failed. Execution of C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe failed with exit code 1021, output:
Cannot create a stable subkey under a volatile parent key.
Attempt 2 of 2 failed. Execution of C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe failed with exit code 1021, output:
Cannot create a stable subkey under a volatile parent key.
Error: Sequence execution failed.
04/07/2025 09:48:05:647 : 28168 : MESSAGE : Operation 'complete.operation.intel.sessionmanifest.1744036842749401' execution is finished with status SuccessWithFail.
04/07/2025 09:48:05:647 : 28168 : MESSAGE : Starting execution of operation 'update_state.operation.intel.sessionmanifest.1744036842749401'.
04/07/2025 09:48:05:653 : 28168 : MESSAGE : Operation 'update_state.operation.intel.sessionmanifest.1744036842749401' execution is finished with status Success.
04/07/2025 09:48:05:653 : 28168 : ERROR : Install sequence execution status: SuccessWithFail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I definitely have a mess. I installed the Visual Studio 2022 and then the fortran essentials as suggested and got an error in the above post about the subkey and parent key. So, I uninstalled the oneAPI and uninstalled the VS 2022. I was hoping to install the old VS 2017 or 2019 Community but can't seem to find it. I reinstalled VS 2022 and then tried to install my old XE version. It seemed to start the install but does not do anything. I tried to install the fortran-compiler (not the essentials) and get the same parent and subkey error. I'm trying the repair now. (same error)
I suspect it may be a rights issue. I do have Admin Rights for today and maybe tomorrow. A few weeks ago, I had a problem with an Excel Macro that was spawning a child process to call a VBA EXE to open another program. The fix was to get the IT gods to put my login name in a special class where I was allowed to spawn the child process. I may have to get them to add this fortran install to my allowed list, but I am clutching at straws at this point.
Is there a way to uninstall oneAPI and VS 2022 and get back to VS 2019 and my old XE fortran?
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you can't install VS2022 and the Intel oneAPI compiler, you''re unlikely to be able to install VS2019 and the XE compiler. Microsoft does not make older VS versions downloadable without a paid license.
I suggest you ask your "IT gods" for assistance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Steve,
I was able to get VS 2017 installed ( I think) but I'm not sure how or which Fortran package to get/install. I found the following files on my old computer:
parallel_studio_xe_2020_update1_composer_edition_for_fortran_setup.exe
parallel_studio_xe_2020_update2_composer_edition_for_fortran_online_setup.exe
parallel_studio_xe_2020_update4_composer_edition_for_fortran_setup.exe
parallel_studio_xe_2020_composer_edition_for_fortran_setup.exe
parallel_studio_xe_2019_update6_composer_edition_for_fortran_online_setup.exe
When I click on one to Install it extracts the files and starts the splash screen but the window closes with nothing happening. I'll find the IT person that helped me with Excel. I think we bought support and maybe I could eMail them.
The text below is the VS 2017 info:
Microsoft Visual Studio Community 2017
Version 15.9.71
VisualStudio.15.Release/15.9.71+35826.203
Microsoft .NET Framework
Version 4.8.09032
Installed Version: Community
Visual C++ 2017 00369-60000-00001-AA742
Microsoft Visual C++ 2017
ASP.NET and Web Tools 2017 15.9.04012.0
ASP.NET and Web Tools 2017
C# Tools 2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
JavaScript Language Service 2.0
JavaScript Language Service
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++ Wizards 1.0
Microsoft Visual C++ Wizards
Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page