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

error LNK2001

lutz_kuemmel
Beginner
839 Views
I change the compiler Version from Visual Fortran 6.1.a to Visual Fortran 6.6.a.

With the old Version the link procedure run successful.

With V6.6.a I get the following Message.

Linking...
dformt.lib(for_init.obj) : error LNK2001: unresolved external symbol ___pxcptinfoptrs
y:MODELTEST.EXE : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

The Program is a mix languag application with C++.

Does anyone know what's wrong?

Thanks,
Lutz

0 Kudos
1 Reply
Intel_C_Intel
Employee
839 Views
This is the symptom you would see if you are somehow mixing threaded and non-thread runtime libraries. dformt.lib is the static threaded version of the Fortran runtime lib. I would guess you are pulling in libc.lib instead of libcmt.lib for the C runtime lib. libc is static non-threaded. You want the static threaded libcmt.lib.

- Bill
0 Kudos
Reply