Help required
Rupert Wood
me@rupey.net
Fri May 10 07:05:00 GMT 2002
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.
More information about the Gcc-help
mailing list