🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Phil Edwards Sun, 18 Feb 1996 23:29
clog?? What the $!#@*^ is "clog" ?!!?
#908
Author: Phil Edwards
Date: Sun, 18 Feb 1996 23:29
51 lines
2505 bytes
[crossposted to gnu.g++.help and comp.lang.c++ -- followups to gnu.g++.help]



The compiler is gcc 2.7.2, the system is a DEC Alpha running OSF/1
3.0, lately upgraded to dUnix 3.2.  It is 37 degrees F outside, and the
wind is from the west.  My sign is Leo.  I think that covers most of
the things that tend to affect computers...


Now.  For years I have been getting this and similar warnings, usually
whenever I try to use any of the cout/cerr streams.  The programs run
jus' fine, but the warnings are extremely annoying, especially when you
know the code is clean.  Can anyone give me some tips to clear this
up?  Are there certain libraries I am not including?

Here is an example of a compilation and link which produced the error.
***This server is not even using cout/cerr, either:***

================================================================
g++ -g -I. -I$HOME/include -Wall -c common.C
g++ -g -I. -I$HOME/include -Wall -c server.C
g++ -g -I. -I$HOME/include -Wall -o server.`hostname|sed 's/\..*//'`
   common.o server.o

/usr/ucb/ld:
Warning: clog defined as GLOBAL DATA but is defined in a shared lib as
a GLOBAL FUNC
/usr/ucb/ld:
Warning: clog defined as GLOBAL DATA but is defined in a shared lib as
a GLOBAL FUNC
================================================================

Since it's the linker producing the warning and not the compiler, I
don't know which of the *many* lines of code is responsible, if any.
(So I didn't post any of the code.)  The only mention of "clog" in 
any files anywhere is in iostream.h:

    // clog->rdbuf() == cerr->rdbuf()
    extern _IO_ostream_withassign cout, cerr, clog;

Any tips would be gratefully accepted.  Thanks for your time!


Luck++;
Phil

-- 
#include<std/disclaimer.h>               The gods do not protect fools. Fools
finger pedwards@gamma.cs.wright.edu      are protected by more capable fools.
email pedwards@valhalla.cs.wright.edu                            -Larry Niven
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