From: "Wei Qu" <[EMAIL PROTECTED]>
>
> Hi, all:
>
> I am just start learning OpenSSL and I have just
> download the OpenSSL and installed it on a
> Linux(Redhat 6.0) box. The openssl is installed in the
> default directory (/usr/local/ssl).
>
> But it seems that the compiler can not find the
> include directory of the openssl so it can not find
> the .h files.
>
> How should I configure the system so the compiler can
> find the .h files of Openssl?
To make gcc aware of include files in another directory you
add some switches to the compile line. ie
gcc -I/usr/local/ssl/include -c test.c
To get gcc to spot the libraries for linking you add a different switch.
gcc -L/usr/local/ssl/lib test.c -o test -lcrypto -lssl
The last two tell the comiler that it might need to link libcrypto and
libssl when building test.
Hope the helps.
Cheers, Jim.
IT Manager, Blitz The Net Ltd.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]