Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Can't build in release conf.

meistrv
Beginner
612 Views
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
0 Kudos
1 Reply
Steven_L_Intel1
Employee
612 Views
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.
0 Kudos
Reply