Software Archive
Read-only legacy content
17061 Discussions

LINK error with pctype & mb_cur_max

Intel_C_Intel
Employee
695 Views
dln3.lib(gas.obj) : error LNK2001: unresolved external symbol __pctype
dln3.lib(gas.obj) : error LNK2001: unresolved external symbol ___mb_cur_max

I am having trouble resolving the above two errors at link time. gas.obj contains subroutines being called by Fortran source code. The names pctype and mb_cur_max are not specifically referenced in any line of code that was used to create gas.obj. I think that these names are at the Microsoft level as I have located several *.LIB and *.H files in the Visual studio folders that contain these names (by using a text string search with file find).

Any thoughts as to how to get around this type of error?
0 Kudos
1 Reply
Intel_C_Intel
Employee
695 Views
Hi,

I think that this might be a mismatch of C run-time libraries between the main program and the library. For example, debug vs non-debug, static library vs dll, multuthreaded vs non-multithreaded.

Hope this helps,
Leo
0 Kudos
Reply