Hi,
I just compiled cxxtools 1.4.6 on my solaris installation without any
problems.
I read in the man-page of linux:
size_t iconv(iconv_t cd,
char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft);
and on solaris (with man -s 3C iconv) there are 2 variants. The Default:
extern size_t iconv(iconv_t cd, const char **restrict inbuf,
size_t *restrict inbytesleft, char **restrict outbuf,
size_t *restrict outbytesleft);
and one labled SUSv3:
size_t iconv(iconv_t cd, char **restrict inbuf,
size_t *restrict inbytesleft, char **restrict outbuf,
size_t *restrict outbytesleft);
Looks like solaris has both variants. But it should not matter. ICONV_CONST
should be defined correctly anyway. In $CXXTOOLS/src/config.h, which is
generated from the configure script ICONV_CONST is defined empty on linux
and "const" on solaris. So I have both variants. Looks like there is
something else wrong.
What I can see is, that you use gcc on solaris. I use the sun studio compiler.
>From the error message I can read, that the compiler is looking for
ICONV_CONST, which should have been either removed or replaced by "const" by
the preprocessor. Why the preprocessor does not see the "#define ICONV_CONST"
in config.h which is included in iconvstream.cpp?
Can you check, if and how ICONV_CONST is defined in your src/config.h? The
compiler flags look correct. The current directory is src when compiling
iconvstream.cpp and the first three -I entries are the current directory.
Looks like the compiler still includes the wrong config.h.
Tommi
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general