delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/21/12:17:47

From: Jason Nye <jnye AT nbnet DOT nb DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Regarding Solution(?) to VERY STRANGE PROBLEM...
Date: Sat, 18 Oct 1997 21:51:06 -0300
Organization: NBTel Internet
Lines: 18
Message-ID: <34495979.2D4F46ED@nbnet.nb.ca>
NNTP-Posting-Host: mctnts04c09.nbnet.nb.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Just a note regarding the 'Solution(?) to VERY ...':

In my example, I accidentally declared class A as:

class A {
public:
    A::A(char c);
    ...
private:
    B *workerB;
    static bool setup;
};

workerB should have also been static and declared in the cpp as:

B *A::workerB = 0;


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019