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

fatal error LNK1561: entry point must be defined when migrating from CVF to intel

d_shalashilinleeds_a
2,813 Views
Hello Steve

I am trying to migrate from Compaq Visual Fortran to Intel fortran. I did what the page

http://software.intel.com/en-us/articles/migrating-from-compaq-visual-fortran/

tells. After trying to build the project I get

fatal error LNK1561: entry point must be defined

How to fix it? I am adding two files: the initial CVFproject and same project converted to intel.
The project is made of onesingle filewhich does nothing

program ...
...
stop
end

It would be great if you could help me out and give me a set of simple instructions how to migrate from CVF to intel
0 Kudos
5 Replies
Steven_L_Intel1
Employee
2,813 Views
Please do the following. Right click on the Project, select Properties. Click on the + next to Linker. On the General tab, remove the value for Additional Library Directories. On the Input tab, remove the two CXML libraries, leaving just kernel32.lib. Click OK and then rebuild the solution. Does this help?
0 Kudos
d_shalashilinleeds_a
2,813 Views
Please do the following. Right click on the Project, select Properties. Click on the + next to Linker. On the General tab, remove the value for Additional Library Directories. On the Input tab, remove the two CXML libraries, leaving just kernel32.lib. Click OK and then rebuild the solution. Does this help?

Thanks a lot! It seems to be working now!
0 Kudos
Steven_L_Intel1
Employee
2,813 Views
Glad to hear it. I recommend also removing the /MACHINE:I386 from the Linker > Command Line property page. It's harmless unless you try to convert this to an x64 configuration.
0 Kudos
d_shalashilinleeds_a
2,813 Views
Glad to hear it. I recommend also removing the /MACHINE:I386 from the Linker > Command Line property page. It's harmless unless you try to convert this to an x64 configuration.


Hello Steve

Do you mind if I ask you couple of naive questions regarding adding MKL library here? I am moving from Compaque VFand havingnow aproblem with using LAPACK routines. First question:Arethe names of LAPACK routines same in MKL as in standars LAPACK package? If yes, then my second question iswhat would be the simplest way to link my project with MKL? I seem to have done what MKL manual tells to do but it does not work.

Thanks
Dmitry

0 Kudos
Steven_L_Intel1
Employee
2,813 Views
Dmitry,

Please ask your MKL questions in the MKL forum. There are lots of MKL experts there, not so many here...
0 Kudos
Reply