First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 13420
Product:  
Component:  
Status: RESOLVED
Resolution: DUPLICATE of bug 9941
Assigned To: Not yet assigned to anyone <unassigned@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: Arnaud Desitter <arnaud.desitter@ouce.ox.ac.uk>
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 13420 depends on: Show dependency tree
Show dependency graph
Bug 13420 blocks:

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: Opened: 2003-12-17 15:22
On Cygwin (1.5.5) and using g++ 3.3.1 ("g++ (GCC) 3.3.1 (cygming special)") 

Using the 3 files below,

$ cat AA1.h
#pragma interface

#include "AA2.h"

class AA1 {
public:
  void g(){
    std::ostringstream os;
  }
};

$ cat AA2.h
#pragma interface

#include <sstream>
#include <iostream>

class AA2 {
 public:
  void f(std::ostringstream os) {
    os.str();
  }
};

$ cat BB.cpp
#include "AA1.h"

#pragma implementation "AA1.h"
#pragma implementation "AA2.h"

int myi;

A compilation results in two bogus undefined
symbols.
$ g++ -c BB.cpp  ; nm BB.o | grep ' U'
         U __GLOBAL__D_myi
         U __GLOBAL__I_myi

It works flawlessly under Linux.

This snippet comes from compiling ddd under cygwin.
Similar problems have been reported. See:
http://www.cygwin.com/ml/cygwin/2003-11/msg01066.html

------- Comment #1 From Andrew Pinski 2003-12-17 16:33 -------
This is a dup of bug 9941.

*** This bug has been marked as a duplicate of 9941 ***

First Last Prev Next    No search results available      Search page      Enter new bug