[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linker Problems with gcc-3.4
From: |
Arnaud Desitter |
Subject: |
Re: Linker Problems with gcc-3.4 |
Date: |
Mon, 17 May 2004 16:21:48 +0100 |
----- Original Message -----
From: "Max Bernhardt - extern TAGP - Tel. 3749" <address@hidden>
To: "Arnaud Desitter" <address@hidden>
Sent: Monday, May 17, 2004 3:59 PM
Subject: Re: Linker Problems with gcc-3.4
> Arnaud Desitter wrote:
>
> > Hi,
> >
> > It looks like a problem with the compiler set-up or your compiler.
> > Try to build a simple C++ program such as:
> >
> > #include <string>
> > #include <iostream>
> > int main(){
> > std::string s("Hello world.");
> > std::cout << s << std::endl;
> > }
> >
> > If it works, then you will have to dig further yourself.
> > It is vey unlikely to be a ddd problem as it works fine with
> > gcc 3.4 on Linux and with the native Sun compiler on Solaris.
> >
> > Regards,
>
> Thanks for the answer, but no ...
>
> I can compile the example Program using
>
> g++ hello.cc -o hello
>
> or
>
> gcc hello.cc -L/<PATH TO GCC-LIBS> -lstdc++ -o hello
>
> just fine.
Then you are the only one that can debug it.
> Yes i know that ddd can be compiled with the native Sun Compiler (Sun C++
5.5
> Patch 113817-06 2004/01/29), which is just what i've done after i couldn't
> compile it with gcc-3.4.
>
> But this ddd had some massive problems debugging an appilcation that was
> compiled with gcc-3.4.
> (Navigating the stack didn't work correctly, 'up' and 'down' missed
several
> functions in the stack, setting breakpoints sometimes set the breakpoint
one
> line off (although the source were DEFINITEly current, not finding half of
the
> sourcefiles etc.)
>
> BTW i'm using gdb-6.1, which i compiled with gcc-3.4 and linked with the
native
> Sun Linker (/usr/ccs/bin/ld).
>
> Might this be a problem between gcc-3.4 and gdb-6.1 ???
Use gdb directly to find out. It may be the ddd needs to be adapted to
understand
gdb 6.1. If so, your patches are welcome.
Regards,