Software Archive
Read-only legacy content
17060 ディスカッション

LINK error with pctype & mb_cur_max

Intel_C_Intel
従業員
988件の閲覧回数
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 件の賞賛
1 返信
Intel_C_Intel
従業員
988件の閲覧回数
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
返信