error LNK2001

error LNK2001

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

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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

Login to leave a comment.