Robert Persson wrote:

I just did CC=g++ and I now get a different error, both with 1.2.11 and 1.4.1, namely:

        cdump.c: In function `int main(int, char**)':
        cdump.c:99: error: invalid conversion from `void*' to `unsigned char*'

Hmm, yes, I guess this is to be expected. C++ is much more strict about type conversions than C, so you can't really compile .c files as C++ and expect good results...

I just emerged 2.2.11, using gcc-3.3.4-r1, without any trouble. One thing I noticed though:

zebedee ~ # emerge --info
Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.5-r2,
...

[ebuild R ] sys-devel/gcc-3.4.4-r1 (-altivec) -bootstrap -boundschecking -build +fortran +gcj +gtk -hardened -ip28 (-multilib) -multislot (-n32) (-n64) +nls -nocxx -nopie -nossp +objc -static -vanilla 26,919 kB

I think this means that, even though have gcc-3.4.4 merged, you are actually using 3.3.5 to compile things via portage.

Take a look at the output of "gcc-config -l", and if necessary, change the active profile with "gcc-config i686-pc-linux-gnu-3.4.4". Then try emerging again.

-Richard

--
[email protected] mailing list

Reply via email to