*.c no error, *.cpp a error
Jim Wilson
wilson@specifixinc.com
Tue Jan 6 18:38:00 GMT 2004
Karol Krizka wrote:
> /usr/include/md5.h:38: error: too many arguments to function `void
> MD5Init()'
This isn't a gcc problem. This is a problem with the header files,
which are not C++ safe by default. C++ requires prototypes for
functions, the C language does not. Or more specifically,
void MD5Update();
means something different in C++ than it means in C.
You can partly work around this by adding -DPROTOTYPES=1. Even with
that though, there are still lots of problems with compiling this code
as C++. I get over a hundred errors using gcc-3.2.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
More information about the Gcc-bugs
mailing list