On Wed, Nov 15, 2000 at 01:40:51PM -0800, David Gomez Cid wrote:
> Hey ,
> 
> I am trying to into my code, however, i haven't been able to compile even the 
>simpliest code:

Indeed!

> c++ -L/usr/local/ssl/lib -lssl -lcrypto -I/usr/local/ssl/include main2.cpp -o test
> 
> and all i get is...
> 
> /tmp/ccO8GjTu.o: In function `main':
> /tmp/ccO8GjTu.o(.text+0x15): undefined reference to `SSL_library_init'
> collect2: ld returned 1 exit status
> 
> --------------------------
> 
> I know that this might be a dumb question ... but i had to ask it =)

Please read the documentation about your compiler. It will tell you that
references are resolved from left to right, so main2.cpp must be listed
before (left of) -lssl....

Best,
        Lutz
-- 
Lutz Jaenicke                             [EMAIL PROTECTED]
BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to