Date: Tue, 12 May 1992 15:28:38 +0200 From: Susan Thunder To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: static members w/ new gcc Status: O Wassup! I recently downloaded the new djgcc, but I`ve encountered various problems with it. 1st of all, I can`t declare class members static. e.g. check out this little piece of code: #include class xy { public: static int foo; }; main() { xy test; int a; xy::foo=2; cout << xy::foo; } which IMHO should work fine (at least it did with the old version). But the compiler gives me somethin` like this: TEST.o: Undefined symbol __2xy$foo referenced from text segment Maybe someone could help me with this one. I imagine there are other people who must have had the same problem, or could it be that it`s got to do sth. with my configuration? To be sure: I run a 486 AT 33,4MB & a 40MB HD(yeah, yeah, I`m gonna get a bigger one soon). Also, I`ve had a problem with the old Borland make, which worked fine with the old gcc but now causes HD hangs almost always. Other than that, I love the whole djgpp project, esp. the new cbgrx lib, which works wonderfully w/ my old t4k card. peace rms