Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29273 Discussions

Fatal error LNK 1561 when compiling 64 bit exe on 32 bit Windows

Ngu_Soon_Hui
Beginner
1,762 Views

I am trying to compile a simple 64 bit fortran exe on my 32 bit windows. However, I got the below error:

fatal error LNK 1561: entry point must be defined.

Trying to compile a 32 bit fortran exe on 32 bit system, OTOH, doesn't have any problem.

I attach the vfproj that is used to produced the 64 bit exe here for your perusal. You can try to compile the vfproj on a 32 bit Windows XP to see what I mean.

0 Kudos
1 Solution
victor_pp
Novice
1,762 Views

For some reasons your system is not defined in the x64 project.

Go to Project Properties\Linker\System and set SubSystem to Console (/SUBSYSTEM:CONSOLE).

The program should compile and link without problems after that.

Victor

View solution in original post

0 Kudos
1 Reply
victor_pp
Novice
1,763 Views

For some reasons your system is not defined in the x64 project.

Go to Project Properties\Linker\System and set SubSystem to Console (/SUBSYSTEM:CONSOLE).

The program should compile and link without problems after that.

Victor

0 Kudos
Reply