- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a simple project (console application), containing one program and four modules with some global variables and some routines within. I can build it in Debug configuration and it works perfect. When I try to build it in the Release configuration I got message: "Test error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup". What is wrong?
Software is:
Intel Fortran Compiler Integration for Microsoft Visual Studio .NET 2003, Version 8.0.2225.2003
Thank you for help
Vit
Software is:
Intel Fortran Compiler Integration for Microsoft Visual Studio .NET 2003, Version 8.0.2225.2003
Thank you for help
Vit
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What specifically is wrong is that your release configuration thinks it is building a "Windows Application" whereas, I am guessing, the debug configuration is set for a console application. I am not sure how that was accomplished.
In the project properties, go to the Linker page, System. Make sure that SubSystem is set to Console.
In the project properties, go to the Linker page, System. Make sure that SubSystem is set to Console.

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