> when i compile the program p192.c i get following error > [EMAIL PROTECTED] ~]# gcc p192.c
This is not the command to compile. This is the command to compile and link. "gcc -c p192.c" is the command to compile, and you will likely get no errors. > /tmp/ccicrxZV.o: In function `main': > p192.c:(.text+0x12): undefined reference to `DH_new' > p192.c:(.text+0x31): undefined reference to `BN_bin2bn' > p192.c:(.text+0x3e): undefined reference to `BN_new' > p192.c:(.text+0x5c): undefined reference to `BN_set_word' > p192.c:(.text+0x71): undefined reference to `PEM_write_DHparams' These are all linker errors. They result from the fact that you didn't tell gcc to link to OpenSSL. How you link to OpenSSL depends upon how OpenSSL was installed, but it may be '-lssl -lcrypto'. DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]