Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-16-2005, 01:10 AM   #1
Registered: Apr 2004
Posts: 89

Rep: Reputation: 15

I am writting a small hash program. I want to use the MD5, functions present in <openssl/md5.h>. I don't know how to compile my code after inluding these headers. When I include the MD5() function, it says "undefinied reference to MD5". What flags shud I use during compilation ?
Old 05-16-2005, 01:28 AM   #2
Senior Member
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
I would imagine you need to have "-lssl" or "-lopenssl" depending on the name of the library installed on your system.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenSSL Chiel Linux - Newbie 1 09-03-2004 05:52 PM
openssl abdullahgee Linux - Security 2 06-04-2004 02:36 PM
OpenSSL 0.9.6k kojiroh Solaris / OpenSolaris 2 10-09-2003 11:51 AM
openSSL again ArchNGEL Linux - General 1 06-05-2003 11:03 PM
openssl sailaw Linux - General 1 01-25-2003 04:29 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration