Article View: gnu.gcc.help
Article #51909(none)
From: (Joern Sierwald)
Date: Mon, 08 Mar 1993 13:55
Date: Mon, 08 Mar 1993 13:55
31 lines
1528 bytes
1528 bytes
Hello,
I have two questions about the implementation of the c++
compiler. I am using gcc 2.3.3 for OS/2, a port by
Eberhard Mattes.
1) I am missing the IOManipulators, like `setw'.
Is there a way defining them by myself? I need setw for a port
of a programm to gnu c++.
2) I noticed that a definition of a friend function, like:
class MyClass {
friend myFunct ( MyClass a ) { some code here };
}
produces a link error. The linker reports a multiply definition error,
if a have the function definition in a header file and link several
pieces of code that all include the header file.
I thought, myFunct is an (implicit) inline function, but gcc treats
myFunct as an ordinary function. Other compilers have no linking
problems with that code. Is this a bug in gcc or am I doing
something wrong?
Please send the answer to Sierwald@tu-harburg.dbp.de, I don't
read this mailing list.
thank you, J\"orn Sierwald
Technical Details
Message-ID:
<9303081349.AA09339@ap05.cip3a.tu-harburg.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!tu-harburg.dbp.DE!SierwaldShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,5afe1b65ad867693,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-03-08 06:07:47 PST Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!tu-harburg.dbp.DE!Sierwald From: Sierwald@tu-harburg.dbp.DE ( (Joern Sierwald)) Newsgroups: gnu.gcc.help Subject: (none) Date: 8 Mar 1993 08:55:44 -0500 Organization: GNUs Not Usenet Lines: 31 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <9303081349.AA09339@ap05.cip3a.tu-harburg.de>