On Fri, Aug 24, 2012 at 2:18 AM, Jeffrey Walton <noloa...@gmail.com> wrote: > 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.
You really need to show the error, I doubt it is "not recognizing" it. >> Does someone know how to solve this? >> Do I have to set some path, or something like that? You might do, use -L for this. > 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." Significant relative to .o and other libraries, not to the output file, so this should make no difference. > > 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 ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org