c++ unresolved external error
I was coding a program which required me to convert the given string into md5 hash . So since i didn't have d required header files .i googled around a bit and found that i require four additional include files . ie. md5.h,md5.c,md5wrapper.cpp,and md5wrapper.h .so i downloaded them and copied them to my include folder . then when i compile my code i get a warning : "cannot create precompiled header :code in header" but since its a warning i ignored it . but when i try making my code i get the error "unresolved external error "
any idea whats wrong ??
also since i am using borland . and since i am able to compile it without errors ,i also have the .exe of my code but when i try to run it i get md5.exe (thats my file name) has encountered a problem and needs to close .!!! whats problem??
Not sure exactly what code you've got, but the only files you should need to calculate MD5 hashes are md5.h and md5.c.
If you can't get it to compile at all, I've got a (poorly hacked together) md5.dll that exports a function called MD5String that will return the md5 of the given string that I can upload somewhere.
ok i tried messing around with my code and changed it a bit hoping it might run but it dosnt . so i thought of the basic and wrote another code(basic) …..
#include <stdio.h> #include "md5.h"
int main(void) { printf("MD5 of md5Test is ' = <%s>\n", MD5String("md5Test"));
return 0; }
but i get a link error [Linker error] undefined reference to `MD5String(char*)'
any idea what might be wrong here ???
Here, just use this header.
For the linker, try to add a dll or something into your project file.
sharpskater80 wrote: Here, just use this header.
For the linker, try to add a dll or something into your project file.
thanks sharpskater80 and mastergamer . i managed to get rid of the linker error !! will try using sharpskater80 's header file this time around as not getting the answer that i need !! will post again if i come across more problems !! thnx again !!