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]

RE: Help required


Shalendra Chhabra wrote:

> pro1.cpp:31: implicit declaration of function `int 
> CHK_NULL(...)'
> pro1.cpp:33: implicit declaration of function `int CHK_SSL(...)'
> pro1.cpp:38: implicit declaration of function `int CHK_ERR(...)'
> pro1.cpp:96: implicit declaration of function `int close(...)

This means that you haven't #defined these macros or included the header
files which declares close().

It looks like you've copied this code out of one of the ssl demo files;
you can find definitions of the CHK_SSL/NULL/ETC at the top of cli.cpp,
inetdsrv.cpp or serv.cpp (just above the main function). You should copy
these lines into your program after the openssl includes but before
main(). You should also try and understand what they do rather than just
use them blind!

If you type 'man close' on your system then it should tell you which
header file to include for the definition of close() (probably
unistd.h).

Good luck,
Rup.


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