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

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

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

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya