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.

LNK2019 error

James_C_8
Beginner
453 Views

I am in the process of converting from Compaq Visual Fortran to Intel Visual Fortran. 

I am trying to run simple "hello_world" program.

My program complies just fine with:   "Ifort /c hello_world.f90"

However, when I link with "Ifort /exe:runmodel.exe hello_world.obj"

I get the following error messages

-out:runmodel.exe
-subsystem:console
-incremental:no
Hello_world.obj
Hello_world.obj : error LNK2019: unresolved external symbol ___intel_new_feature_proc_init referenced in function _MAIN__
Hello_world.obj : error LNK2019: unresolved external symbol _for_set_reentrancy referenced in function _MAIN__
Hello_world.obj : error LNK2019: unresolved external symbol _for_write_seq_fmt referenced in function _MAIN__
LINK : error LNK2001: unresolved external symbol _mainCRTStartup
runmodel.exe : fatal error LNK1120: 4 unresolved externals

 

So, what am I doing wrong?

 

0 Kudos
1 Reply
James_C_8
Beginner
453 Views

Never Mind.  I think I found my error.  I was incorrectly setting the fortran environment with the call to ipse-comp-vars.bat

0 Kudos
Reply