🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53079

Hmmm. Gcc 2.0 -> C++

#53079
From: Bozo Prime
Date: Fri, 13 Mar 1992 21:12
38 lines
1434 bytes
Hey, here's a neat one using Gcc 2.0 (c++)....

I have this class...

class C_Window
 {
   Window win;
   static Display *disp;
   static int     screen;
   static Window  Root_Win;
   void StartX(int x_pos, int y_pos, int x_size, int y_size, char *name);
   ...
 };

Which Produces....

        ...
	sethi %hi(__8C_Window$disp),%o0
	ld [%o0+%lo(__8C_Window$disp)],%l1
	sethi %hi(__8C_Window$screen),%o0
	ld [%o0+%lo(__8C_Window$screen)],%o1
        ...

Then....

        This gets to the loader and *poof*. __8C_Window$xxxx undefined symbol.
 Are statics not supported in gcc 2.0? Am I doing something totally brain
 dead? Was gcc mis-installed? Help....

        Thanks, 

           Craig Hier
           craig@minos.nmt.edu

----------------------------------------------------------------------------
I don't know...Beats me...I didn't do it...etc....
----------------------------------------------------------------------------
Technical Details
Message-ID: <1992Mar13.211217.8807@nmt.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!network.ucsd.edu!nmt.edu!craig

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,3a2a73ee2977367f,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-03-13 13:37:14 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!network.ucsd.edu!nmt.edu!craig
From: craig@nmt.edu (Bozo Prime)
Newsgroups: gnu.gcc.help
Subject: Hmmm. Gcc 2.0 -> C++
Message-ID: <1992Mar13.211217.8807@nmt.edu>
Date: 13 Mar 92 21:12:17 GMT
Organization: The Bozo Show
Lines: 38