Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: mentalCo. on July 16, 2004, 10:59 AM

Title: [c++] hashing.cpp
Post by: mentalCo. on July 16, 2004, 10:59 AM
when i try and compile using the hashing.h and cpp files i get link errors.  ive even made a completely blank program and included hashing.h and still same link errors:

Linking...
Hashing.obj : error LNK2001: unresolved external symbol _VerQueryValueA@16
Hashing.obj : error LNK2001: unresolved external symbol _GetFileVersionInfoA@16
Hashing.obj : error LNK2001: unresolved external symbol _GetFileVersionInfoSizeA@8
Debug/main.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.

main.exe - 4 error(s), 0 warning(s)


Title: Re:[c++] hashing.cpp
Post by: Newby on July 16, 2004, 11:02 AM
Make sure you include "Version.lib"

(If you're using VC++ go to Project -> Settings [Alt + F7] -> Link)
Title: Re:[c++] hashing.cpp
Post by: mentalCo. on July 16, 2004, 11:30 AM
aha!
Title: Re:[c++] hashing.cpp
Post by: Maddox on July 16, 2004, 05:27 PM
Or you could write this in Hashing.cpp.

#pragma comment(lib, "version.lib")