Jump to content

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


Recommended Posts

Guest jkwilborn
Posted

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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...