- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am using Windows 7 and trying to build a console application for Win XP (32) and got an error.
Compiler i am using is Intel Fortran XE 14.0 compiler and Visual Studio 2012.
Also, in the Configuration Properties, i've set the Linker, System, SubSystem for "Console for Windows XP (/SUBSYSTEM:CONSOLE,"5.1")
The application built fine without any error. It runs fine on Windows 7 but when i run the same application on Win XP, i get the following error:
Error: Entry Point Not Found.
The procedure entry InitOnceExecuteOnce could not be located in the dynamic link library KERNEL32.DLL
Please help.
Thanks.
Ken
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That API requires Windows Vista at a minimum, according to MSDN. Setting the subsystem for XP doesn't guarantee that all APIs are on XP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the quick reply Steve!
Is there a way to suppress that API or a work around that you know of? Or is there a way to use Fortran on Win7 and write any application for Win XP?
The program i created to do the test was a simple Hello World program and it crashed right at the start in Win XP.
Below is the command line linker options:
/OUT:"Debug\Test1.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTFILE:"C:\Users\khn7407\Desktop\TEAM-SoCal\Test1\Test1\Debug\Test1.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\Users\khn7407\Desktop\TEAM-SoCal\Test1\Test1\Debug\Test1.pdb" /IMPLIB:"C:\Users\khn7407\Desktop\TEAM-SoCal\Test1\Test1\Debug\Test1.lib"
Additional Options:
/SUBSYSTEM:CONSOLE,"5.01"
Can you please take a quick look to see if something i've missed? Thanks again.
Ken
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Crashes how? Have you installed Service Pack 1 for VS2012?
See https://software.intel.com/en-us/articles/linking-applications-using-visual-studio-2012-to-run-on-windows-xp for more information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you place your main (PROGRAM) inside Test1.lib? I see no .obj file.
What is linking with Test1.lib?
If you have no .obj file(s) on the link line...
Then nothing will be pulled in from the .lib file(s).
You'd expect the linker to complain about this.
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jim, I'm sure that the objects are on the line but he didn't show it.
I'm fairly certain that the issue is that Ken doesn't have VS2012 SP1, as the original VS2012 had C libraries (used by Fortran) that used APIs not supported on XP.
![](/skins/images/C4F7392A5C68ACA60290C9576F107044/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page