hello all,
i am porting a vc6 project to vc8 and after rebuilding all my old libs
i still get 2 lnk2019 errors for symbols that should be in KERNEL32.LIB:
i checked linking with linker option "/verbose" and also checked my old
program using vc6 where it finds the two symbols in KERNEL32.LIB, no problem
these are my error messages:
1.
hblib_d.lib(mutex.obj) : error LNK2019: unresolved
external symbol
"__declspec(dllimport) long __stdcall InterlockedIncrement(long *)"
(__imp_ InterlockedIncrement@@YGJPAJ@Z) referenced in
function "public: int __thiscall ost::AtomicCounter::operator+=(int)"
( YAtomicCounter@ost@@QAEHH@Z)
2.
hblib_d.lib(mutex.obj) : error LNK2019: unresolved
external symbol
"__declspec(dllimport) long __stdcall InterlockedDecrement(long *)"
(__imp_ InterlockedDecrement@@YGJPAJ@Z) referenced in
function "public: int __thiscall ost::AtomicCounter::operator-=(int)"
( ZAtomicCounter@ost@@QAEHH@Z)
.\ddptestCORBA_2005_Debug\ddptestCORBA.exe : fatal
error LNK1120: 2 unresolved externals
thank you all
stefan
lnk2019 error for KERNEL32.LIB symbol
Rob Caron MSFT
No! This can't be the reason. If the signature is correct and KERNEL32.LIB is in the list of libraries to be included it should work.
Do you can create a small sample to repro this problem
Zebes
Eric Yin