| delorie.com/archives/browse.cgi | search |
| 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;
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |