• Welcome to Valhalla Legends Archive.
 

[c++] hashing.cpp

Started by mentalCo., July 16, 2004, 10:59 AM

Previous topic - Next topic

mentalCo.

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)



Newby

Make sure you include "Version.lib"

(If you're using VC++ go to Project -> Settings [Alt + F7] -> Link)
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

mentalCo.


Maddox

#3
Or you could write this in Hashing.cpp.

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