On Tue, Nov 07, 2000 at 01:53:56PM +0000, [EMAIL PROTECTED] wrote:
> I am having problem linking libssl.a libcrypto.a and my own lib to an 
> application.

> #(BTW. I moved the libs into my own directory and I used to use gcc)
> tpos3client:            libTpos3.a tpos3client.cpp
>                         $(CC) $(CCCFLAGS) -lstdc++ -L. -lssl -lcrypto 
> tpos3client.cpp -lTpos3 -o $(EXECNAME)

The ordering is important! Make this:
$(CC) $(CCCFLAGS) tpos3client.cpp -o$(EXECNAME) -L. -lTpos3 -lssl -lcrypto -lstdc++
because libTpos3.a needs parts of OpenSSL that can only be linked in _after_
libTpos3 was processed, so first libTpos3 must be processed, _then_ the
ssl and crypto libraries.
(The positioning of the -o argument is not important)
 
Best regards,
        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