On Tue, Oct 09, 2001 at 05:29:17PM +0800, wenwen-unitop wrote:
>     when i compiled /openssl-0.9.6/demos/ssl/cli serv
>     it just say:
>     is there any library lost?
> cc  -I/home/wenwen/openssl-0.9.6/include -o cli cli.o 
>-L/home/wenwen/openssl-0.9.6/libssl.a -L/home/wenwen/openssl-0.9.6/libcrypto.a     

        I have OpenSSL 0.9.6 installed by default in /usr/local/ssl,
        and I am using next Makefile to make all my stuff:

###  Makefile  ###
SOURCE=mysrc
EXT=c
CC=gcc
INC=-I/usr/local/ssl/include
LIB=-L/usr/local/ssl/lib -lssl -lcrypto -lcrypt
INCSQL=
LIBSQL=

all:            $(SOURCE)

install:        all                                                             
                                                                                
clean:                                                                          
                -rm $(SOURCE)

$(SOURCE):      $(SOURCE).$(EXT)
                $(CC) $(INC) -o $(SOURCE) $(SOURCE).$(EXT) $(LIB)
##################

        Try it, I am almost sure it will works with you perfectly well. ;-)

-- 
green
[http://www.extrasy.net] 
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to