🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Michael.Conner Thu, 29 Oct 1992 01:08
Global Constructors
#14
Author: Michael.Conner
Date: Thu, 29 Oct 1992 01:08
41 lines
950 bytes
I'm Having a problem with gcc-2.2.2 on DG/UX.  The constructors for 
global objects aren't getting run at all.  

Example:

#include <iostream.h>

class foo {
public:
   foo();
private:
   int i;
};

foo::foo() {
   cout << "in foo" << endl;
}

foo bar;

main () {
   foo bar2;
}


gives:



in foo



for output.  Obviously, there should be 2 of these.  This works just
fine on ISC R3.2.  So what gives? Any ideas would be much appreciated.
Thank You for your support.
 

-- 
Michael.Conner@mixcom.com
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