[SOLVED] linker reports missing symbol, can't find lib for symbol

  • Thread starter Thread starter jkwilborn
  • Start date Start date
J

jkwilborn

Hi all, just getting down to writing some code. I have a program that will eventually give me the hash of a string within the program. Unfortunately I've had a problem of locating the proper library with the function.

I've included the following:

Code:
#include <stdio.h>
#include <openssl/md5.h>
I assume it's missing the library with the compiled functions, but can't seem to locate it.

I just have been using "make md5". I get the following errors:

Code:
dev# make md5
cc md5.c -o md5
/tmp/ccnEzHiO.o: In function `main':
md5.c:(.text+0x5a): undefined reference to `MD5_Init'
md5.c:(.text+0x7b): undefined reference to `MD5_Update'
md5.c:(.text+0xba): undefined reference to `MD5_Final'
collect2: error: ld returned 1 exit status
make: *** [md5] Error 1
dev#
Since it's the linker (ld) complaining, I assume it's missing object libraries.

Thanks

Jack

Continue reading...
 
Back
Top