public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10601: Mixing C and C++ files
@ 2003-05-03 16:36 M.W. Hessel
  0 siblings, 0 replies; 4+ messages in thread
From: M.W. Hessel @ 2003-05-03 16:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR target/10601; it has been noted by GNATS.

From: "M.W. Hessel" <mwhessel@xs4all.nl>
To: "Daniel Jacobowitz" <drow@mvista.com>
Cc: <gcc-gnats@gcc.gnu.org>
Subject: Re: c++/10601: Mixing C and C++ files
Date: Sat, 3 May 2003 18:28:18 +0200

 Thanks, problem is solved!
 
 
 
 ----- Original Message ----- 
 From: "Daniel Jacobowitz" <drow@mvista.com>
 To: <marwijn.hessel@ict.nl>
 Cc: <gcc-gnats@gcc.gnu.org>
 Sent: Friday, May 02, 2003 6:35 PM
 Subject: Re: c++/10601: Mixing C and C++ files
 
 
 >
 > On Fri, May 02, 2003 at 09:56:20AM -0000, marwijn.hessel@ict.nl wrote:
 > >
 > > >Number:         10601
 > > >Category:       c++
 > > >Synopsis:       Mixing C and C++ files
 > > >Confidential:   no
 > > >Severity:       critical
 > > >Priority:       medium
 > > >Responsible:    unassigned
 > > >State:          open
 > > >Class:          sw-bug
 > > >Submitter-Id:   net
 > > >Arrival-Date:   Fri May 02 10:06:00 UTC 2003
 > > >Closed-Date:
 > > >Last-Modified:
 > > >Originator:     M.W. Hessel
 > > >Release:        Power-eabi cross gcc-3.2.2, binutils-2.13.2,
 > newlib-1.11.0
 > > >Organization:
 > > >Environment:
 > > Cygwin on a PII platform
 > > >Description:
 > > Cross compiling *.c and *.s, for power-eabi, using GCC v3.2.2, running
 > with Cygwin, it seems to work fine. The generated .ABS file is read by
 > insight v5.3 (source level debugger), and can be downloaded into the
 target
 > (wurz mpc555 board).
 > >
 > > When added a *.cpp file to the project, the linker complains about
 > 'undefined reference to `__gxx_personality_v0''. This can be solved by
 > adding the '-r' option the de linker commands (according to the GCC user
 > manual).
 > > The generated .ABS can not be read by insight v5.3. It seems that the
 > generated symbol table is not correct.
 >
 > You should not be adding -r.  You should be linking using g++, which
 > will bring in the appropriate libraries.
 >
 > --
 > Daniel Jacobowitz
 > MontaVista Software                         Debian GNU/Linux Developer
 
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/10601: Mixing C and C++ files
@ 2003-05-02 16:36 Daniel Jacobowitz
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2003-05-02 16:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1686 bytes --]

The following reply was made to PR target/10601; it has been noted by GNATS.

From: Daniel Jacobowitz <drow@mvista.com>
To: marwijn.hessel@ict.nl
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/10601: Mixing C and C++ files
Date: Fri, 2 May 2003 12:35:23 -0400

 On Fri, May 02, 2003 at 09:56:20AM -0000, marwijn.hessel@ict.nl wrote:
 > 
 > >Number:         10601
 > >Category:       c++
 > >Synopsis:       Mixing C and C++ files
 > >Confidential:   no
 > >Severity:       critical
 > >Priority:       medium
 > >Responsible:    unassigned
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Fri May 02 10:06:00 UTC 2003
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     M.W. Hessel
 > >Release:        Power-eabi cross gcc-3.2.2, binutils-2.13.2, newlib-1.11.0
 > >Organization:
 > >Environment:
 > Cygwin on a PII platform
 > >Description:
 > Cross compiling *.c and *.s, for power-eabi, using GCC v3.2.2, running with Cygwin, it seems to work fine. The generated .ABS file is read by insight v5.3 (source level debugger), and can be downloaded into the target (wurz mpc555 board).
 > 
 > When added a *.cpp file to the project, the linker complains about ‘undefined reference to `__gxx_personality_v0'’. This can be solved by adding the ‘-r’ option the de linker commands (according to the GCC user manual).
 > The generated .ABS can not be read by insight v5.3. It seems that the generated symbol table is not correct.
 
 You should not be adding -r.  You should be linking using g++, which
 will bring in the appropriate libraries.
 
 -- 
 Daniel Jacobowitz
 MontaVista Software                         Debian GNU/Linux Developer


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/10601: Mixing C and C++ files
@ 2003-05-02 10:30 giovannibajo
  0 siblings, 0 replies; 4+ messages in thread
From: giovannibajo @ 2003-05-02 10:30 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, marwijn.hessel, nobody

Synopsis: Mixing C and C++ files

State-Changed-From-To: open->feedback
State-Changed-By: bajo
State-Changed-When: Fri May  2 10:30:44 2003
State-Changed-Why:
    Please, review http://gcc.gnu.org/bugs.html. To take any
    action, we need a minimal testcase, involving a
    preprocessed source code which reproduces the bug.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10601


^ permalink raw reply	[flat|nested] 4+ messages in thread

* c++/10601: Mixing C and C++ files
@ 2003-05-02 10:06 marwijn.hessel
  0 siblings, 0 replies; 4+ messages in thread
From: marwijn.hessel @ 2003-05-02 10:06 UTC (permalink / raw)
  To: gcc-gnats

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1164 bytes --]


>Number:         10601
>Category:       c++
>Synopsis:       Mixing C and C++ files
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 02 10:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     M.W. Hessel
>Release:        Power-eabi cross gcc-3.2.2, binutils-2.13.2, newlib-1.11.0
>Organization:
>Environment:
Cygwin on a PII platform
>Description:
Cross compiling *.c and *.s, for power-eabi, using GCC v3.2.2, running with Cygwin, it seems to work fine. The generated .ABS file is read by insight v5.3 (source level debugger), and can be downloaded into the target (wurz mpc555 board).

When added a *.cpp file to the project, the linker complains about ‘undefined reference to `__gxx_personality_v0'’. This can be solved by adding the ‘-r’ option the de linker commands (according to the GCC user manual).
The generated .ABS can not be read by insight v5.3. It seems that the generated symbol table is not correct.
>How-To-Repeat:
See description
>Fix:
Not known
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-05-03 16:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-03 16:36 c++/10601: Mixing C and C++ files M.W. Hessel
  -- strict thread matches above, loose matches on Subject: below --
2003-05-02 16:36 Daniel Jacobowitz
2003-05-02 10:30 giovannibajo
2003-05-02 10:06 marwijn.hessel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).