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 have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
29317 Discussions

unresolved external symbol _for_set_reentrancy referenced in function _MAIN_

wlz
Beginner
985 Views

When I use the IntelFortran v9.1.028, I got the following errors:

-out:d.exe

-subsystem:console

d.obj:

unresolved external symbol ___intel_new_proc_init referenced in function _MAIN_

unresolved external symbol _for_set_reentrancy referenced in function _MAIN_

unresolved external symbol_for_write_seq_lis referenced in function _MAIN_

unresolved external symbol_main referenced in function _mainCRTStarup

I used the Microsoft Visual Stdio V2002

thanks

0 Kudos
3 Replies
grg99
Beginner
985 Views
You're probably setting some compiler or linker option that selects one particular library. The program nees the library with the fancier recursive/reentrant routines, and you're somehow telling the linker to NOT use the library the compiler has requested, or you 're telling the compiler to NOT emit it's suggestion as to which library tthe linker should use.

Look thru all those little checkboxes under project settings, C, C++, Fortran (and all it's sub dialogs inthe pull-down menu!), AND all the options under the linker. AND look in the white box where you can add your own options, remove anything that says /NODEFAULTLIB or /LIB:xxxxx or similar.

Or start over with an empty project, then add source files to it.



0 Kudos
Steven_L_Intel1
Employee
985 Views
Another suggestion is to look at Tools..Options..Intel Fortran..Directories..Libraries. Make sure that "$(IFORTInstallDir)Lib" is first on the list.
0 Kudos
wlz
Beginner
985 Views

thanks.

I made a mistake. I used the em64t compiler on a 32bit OS. When I used the IA32 compiler, everything is ok

0 Kudos
Reply