I wanted to use the _beginthreadex and _endthreadex C runtime functions, so to have them included in <process.h> I #defined _MT.
Now I get these errors:
connthread.obj : error LNK2001: unresolved external symbol __endthreadex
rbid.obj : error LNK2001: unresolved external symbol __beginthreadex
(Along with dozens of other unresolved externals)
These should be standard C library functions!! I have C library calls all over my program, but the presence of _beginthreadex and _endthreadex cause problems.
Do I need to link to some special multithread library in order to use _beginthreadex and _endthreadex?
I have tried manually linking with LIBCMT.LIB, but then I get hundreds of "duplicate symbol" errors.
If I remove the calls to _beginthreadex and _endthreadex, I do not receive the two errors listed above. But in any circumstance, I always get these errors whenever I #define _MT:
libcpmtd.lib(xstrcoll.obj) : error LNK2001: unresolved external symbol __unlock
libcpmtd.lib(_tolower.obj) : error LNK2001: unresolved external symbol __unlock
libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external symbol __unlock
libcpmtd.lib(xwctomb.obj) : error LNK2001: unresolved external symbol __unlock
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __unlock
libcpmtd.lib(xstrcoll.obj) : error LNK2001: unresolved external symbol __lock
libcpmtd.lib(_tolower.obj) : error LNK2001: unresolved external symbol __lock
libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external symbol __lock
libcpmtd.lib(xwctomb.obj) : error LNK2001: unresolved external symbol __lock
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __lock
libcpmtd.lib(xstrcoll.obj) : error LNK2001: unresolved external symbol ___setlc_active
libcpmtd.lib(_tolower.obj) : error LNK2001: unresolved external symbol ___setlc_active
libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external symbol ___setlc_active
libcpmtd.lib(xwctomb.obj) : error LNK2001: unresolved external symbol ___setlc_active
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol ___setlc_active
libcpmtd.lib(xstrcoll.obj) : error LNK2001: unresolved external symbol ___unguarded_readlc_active
libcpmtd.lib(_tolower.obj) : error LNK2001: unresolved external symbol ___unguarded_readlc_active
libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external symbol ___unguarded_readlc_active
libcpmtd.lib(xwctomb.obj) : error LNK2001: unresolved external symbol ___unguarded_readlc_active
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol ___unguarded_readlc_active
What could be the problem?
Pulling my hair out.
Thanks in advance.
Will
Now I get these errors:
connthread.obj : error LNK2001: unresolved external symbol __endthreadex
rbid.obj : error LNK2001: unresolved external symbol __beginthreadex
(Along with dozens of other unresolved externals)
These should be standard C library functions!! I have C library calls all over my program, but the presence of _beginthreadex and _endthreadex cause problems.
Do I need to link to some special multithread library in order to use _beginthreadex and _endthreadex?
I have tried manually linking with LIBCMT.LIB, but then I get hundreds of "duplicate symbol" errors.
If I remove the calls to _beginthreadex and _endthreadex, I do not receive the two errors listed above. But in any circumstance, I always get these errors whenever I #define _MT:
libcpmtd.lib(xstrcoll.obj) : error LNK2001: unresolved external symbol __unlock
libcpmtd.lib(_tolower.obj) : error LNK2001: unresolved external symbol __unlock
libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external symbol __unlock
libcpmtd.lib(xwctomb.obj) : error LNK2001: unresolved external symbol __unlock
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __unlock
libcpmtd.lib(xstrcoll.obj) : error LNK2001: unresolved external symbol __lock
libcpmtd.lib(_tolower.obj) : error LNK2001: unresolved external symbol __lock
libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external symbol __lock
libcpmtd.lib(xwctomb.obj) : error LNK2001: unresolved external symbol __lock
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __lock
libcpmtd.lib(xstrcoll.obj) : error LNK2001: unresolved external symbol ___setlc_active
libcpmtd.lib(_tolower.obj) : error LNK2001: unresolved external symbol ___setlc_active
libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external symbol ___setlc_active
libcpmtd.lib(xwctomb.obj) : error LNK2001: unresolved external symbol ___setlc_active
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol ___setlc_active
libcpmtd.lib(xstrcoll.obj) : error LNK2001: unresolved external symbol ___unguarded_readlc_active
libcpmtd.lib(_tolower.obj) : error LNK2001: unresolved external symbol ___unguarded_readlc_active
libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external symbol ___unguarded_readlc_active
libcpmtd.lib(xwctomb.obj) : error LNK2001: unresolved external symbol ___unguarded_readlc_active
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol ___unguarded_readlc_active
What could be the problem?
Pulling my hair out.
Thanks in advance.
Will