🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by SSUID Tin Li Wed, 15 Apr 1992 13:34
stream.h and X11R4 Intrinsic.h
#64
Author: SSUID Tin Li
Date: Wed, 15 Apr 1992 13:34
26 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads