home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!paladin.american.edu!darwin.sura.net!max.fiu.edu!ege
- From: ege@max.fiu.edu (Dr. Raimund K. Ege)
- Subject: Re: More Gnu C++ fun
- Organization: Florida International University, Miami
- Date: Wed, 30 Dec 1992 21:30:26 GMT
- Message-ID: <C03D2r.Hn1@fiu.edu>
- References: <1992Dec30.195714.9824@adimail.uucp>
- Sender: news@fiu.edu (Usenet Administrator)
- Lines: 30
-
- In article <1992Dec30.195714.9824@adimail.uucp>, tel@adimail.uucp (Terry Monks) writes:
- |> This minimal program
- |>
- |>
- |> class node
- |> {
- |> public:
- |> static int level;
- |>
- |> node(){};
- |> };
-
- int node::level;
- |>
- |> main()
- |> {
- |> node::level=1;
- |> }
- |>
- |> Any clues?
-
- once you add the line "int node::level;", then g++ will compile and link.
- There is a paragraph in the g++ FAQ that mentions the details why this is
- needed.
-
- --
- Raimund K. Ege School of Computer Science
- Florida Int'l University
- ege@scs.fiu.edu (305) 348-3381 University Park
- ege@servax.bitnet FAX (305) 348-3549 Miami, FL 33199
-