Re: Help: problem with the gcc c++ 4.3.0 compiler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 10, 2008 at 11:12 AM, Francois Mallinger
<mallfra@xxxxxxxxxxx> wrote:
>
> Hello,
> I would really appreciate if you could help me with a c++ compilation problem.
> I will try to summarize the problem I have and give you more details after.
> I use the Mandriva 2006 distribution with gcc 4.0.1.
> I just installed a local version of gcc c++ 4.3.0.
> I have few compilation errors when I compile some c++ code with 4.3.0 that
> I did not have with version 4.0.1.
> One that is annoying appears when compiling the following piece of code:
>
> CODE BEGIN ----------------------------------------------------------------
> #include
> #include
>
>        template
>        struct structure
>        {
>                template  class C>
>                void print(const C& vect){std::cout<<"\n ok \n";}
>        };
>
> int main()
> {
>        std::vector vect(2);
>        vect[0]=1; vect[1]=2; #include
> #include
>
>        template
>        struct structure
>        {
>                template  class C>
>                void print(const C& vect){std::cout<<"\n ok \n";}
>        };
>
> int main()
> {
>        std::vector vect(2);
>        vect[0]=1; vect[1]=2;
>        structure struct_test;
>        struct_test.print(vect);
> }
>        structure struct_test;
>        struct_test.print(vect);
> }

Francois, that code appears to be a jumble of duplicated and
incomplete lines.  Can you send a complete, exact version?
...

> MY SYSTEM: Mandriva 2006 with gcc version 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0)
>
> CONFIGURED WITH: ../configure --prefix=/usr --libexecdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man

That doesn't look right: configured in the gcc source directory?
Could make for weird problems.

-Tom

Tom Browder
Niceville, Florida
USA

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux