On Thu, Aug 23, 2012 at 9:06 PM, Paulo Roberto <bad_boy_...@hotmail.com> wrote:
> Hello, I am using the package libssl-dev on ubuntu in my beagleboard xm, and
> I have to run two C algorithms using the openSSL library..
> Although I can't compile using the command: gcc test.c -lssl -o test. It
> seems the compiler isn't recognizing the "-lssl" command.
> Does someone know how to solve this?
> Do I have to set some path, or something like that?
You specify linker commands (such as libraries) at the very end of the
compiler drive command. From the g++ man pages (around line 25):
"...the placement of the -l option is significant."

    gcc test.c -o test -lssl

You might also want to add -Wl,-Bstatic unless you want to do the
shared object thing.

Jeff
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to