Menu

#10 compile error with MInGW32 (gcc-4.4.0)

open
nobody
None
5
2010-07-19
2010-07-19
Anonymous
No

Compilation of 0.84 with mingw32 (msys, gcc-4.4.0) fails in file html/CharsetConverter.cc on line 39 telling something about cannot cast from (char **) to (const char **)

I fixed it: changed line from:
ret = iconv(mIconvDescriptor, const_cast<char**>(&inbuf), &inbytesleft, &outbuf, &outbytesleft);
to
ret = iconv(mIconvDescriptor, (&inbuf), &inbytesleft, &outbuf, &outbytesleft);

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.