Article View: gnu.g++.help
Article #64stream.h and X11R4 Intrinsic.h
From: SSUID Tin Li
Date: Wed, 15 Apr 1992 13:34
Date: Wed, 15 Apr 1992 13:34
26 lines
1164 bytes
1164 bytes
When I compile the following simple program using g++ 1.4 on sun4
#include <stream.h>
#include <X11/Intrinsic.h>
main ()
{
cout << "This is a test\n";
}
I got the warning flock was first declared as extern then static.
It seems g++ has a function prototype declared for flock in std.h and
system include file /usr/include/sys/fcntlcom.h declared flock as a
struct.
I have to include Intrinsic.h for my Xt stuff and like to use the stream
package instead of printf etc. Does anyone have similar problem?
Is there any workaround? I compiled the same program using Sun's C++ and
had received no warning.
Thanks in advance.
Tin Li
Century Computing Inc.
Laurel, MD
tl@cen.com or tl@bat.gsfc.nasa.gov
Technical Details
Message-ID:
<1992Apr15.133411.1645@nsisrv.gsfc.nasa.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!nsisrv!bat.gsfc.nasa.gov!tlShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!nsisrv!bat.gsfc.nasa.gov!tl From: tl@bat.gsfc.nasa.gov (SSUID Tin Li) Subject: stream.h and X11R4 Intrinsic.h Message-ID: <1992Apr15.133411.1645@nsisrv.gsfc.nasa.gov> Keywords: stream,X11R4 Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet) Nntp-Posting-Host: bat.gsfc.nasa.gov Organization: Century Computing Inc. Date: Wed, 15 Apr 1992 13:34:11 GMT Lines: 27