This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Help Required


I am sorry I am not able to debug these errors as I am facing 
these for the first time and also I have a little experience with 
Programing, When I compile a code from
demo files of Openssl,
cli.cpp
I get the following errors

/tmp/ccgN1DUz.o: In function `main':
/tmp/ccgN1DUz.o(.text+0xa): undefined reference to 
`SSL_library_init'
/tmp/ccgN1DUz.o(.text+0xf): undefined reference to 
`SSLv2_client_method'
/tmp/ccgN1DUz.o(.text+0x1c): undefined reference to 
`SSL_load_error_strings'
/tmp/ccgN1DUz.o(.text+0x2b): undefined reference to 
`SSL_CTX_new'
/tmp/ccgN1DUz.o(.text+0x60): undefined reference to 
`ERR_print_errors_fp'
/tmp/ccgN1DUz.o(.text+0x139): undefined reference to `SSL_new'
/tmp/ccgN1DUz.o(.text+0x164): undefined reference to 
`SSL_set_fd'
/tmp/ccgN1DUz.o(.text+0x173): undefined reference to 
`SSL_connect'
/tmp/ccgN1DUz.o(.text+0x18f): undefined reference to 
`ERR_print_errors_fp'
/tmp/ccgN1DUz.o(.text+0x1b1): undefined reference to 
`SSL_get_current_cipher'
/tmp/ccgN1DUz.o(.text+0x1bc): undefined reference to 
`SSL_CIPHER_get_name'
/tmp/ccgN1DUz.o(.text+0x1f3): undefined reference to `SSL_write'
/tmp/ccgN1DUz.o(.text+0x20f): undefined reference to 
`ERR_print_errors_fp'
/tmp/ccgN1DUz.o(.text+0x237): undefined reference to `SSL_read'
/tmp/ccgN1DUz.o(.text+0x253): undefined reference to 
`ERR_print_errors_fp'
/tmp/ccgN1DUz.o(.text+0x297): undefined reference to 
`SSL_shutdown'
/tmp/ccgN1DUz.o(.text+0x2b5): undefined reference to `SSL_free'
/tmp/ccgN1DUz.o(.text+0x2c4): undefined reference to 
`SSL_CTX_free'
collect2: ld returned 1 exit status

The code is here as an attachment. I would be grateful if someone 
helps me, I still have problem with serv.cpp and inetdserv.cpp but 
I will try to debug them myself.

2. It would be of great help if someone can tell me a link where I 
can learn how to write applications using Openssl Library.

Thank You very much,
Yours Sincerely
Shalendra (Student)
_________________________________________________________
Click below to visit monsterindia.com and review jobs in India or 
Abroad
http://monsterindia.rediff.com/jobs

Attachment: cli.cpp
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]