- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The legacy project builds and debugs successfully, whereas the new project fails to compile:
error LNK2019:unresolved external symbol WinMain,referenced in function "int __cdecl invoke_main(void)"
visual stuido edtion is 17.14.9 (July 2025) which is updated.
while input ifort --version:
ifort: remark #10448: Intel(R) Fortran Compiler Classic (ifort) is now deprecated and will be discontinued late 2024. Intel recommends that customers transition now to using the LLVM-based Intel(R) Fortran Compiler (ifx) for continued Windows* and Linux* support, new language support, new language features, and optimizations. Use '/Qdiag-disable:10448' to disable this message.
ifort: command line warning #10006: ignoring unknown option '/-version'
ifort: command line error: no files specified; for help type "ifort /help"
I need trasition to using the LLVM-based ifx? Is this the reason of failure to compile the new projects?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is more likely that your project does not have a proper main program. Could you check that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I test only a few lines:
program main
implicit none
integer::i=6
write(*,*)i
end
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"unresolved external symbol WinMain" if the project options are for a windows application the entry point is "WinMain" you have a Program statement so the project type needs to be "console program".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
make sure you create a Console application:
https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-guide-reference/2025-2/create-a-new-project.html

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