home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!adimail!tel
- From: tel@adimail.uucp (Terry Monks)
- Subject: More Gnu C++ fun
- Message-ID: <1992Dec30.195714.9824@adimail.uucp>
- Organization: Automata Design, Inc.
- X-Newsreader: TIN [version 1.1 PL7]
- Date: Wed, 30 Dec 1992 19:57:14 GMT
- Lines: 30
-
- This minimal program
-
-
- class node
- {
- public:
- static int level;
-
- node(){};
- };
-
- main()
- {
- node::level=1;
- }
-
-
- compiles and links fine using the AT&T compiler from Sun, but will not link
- under Gnu c++. (sparc-sun-sunos.4.1)
-
- I get the message
- ld: Undefined symbol
- __4node$level
-
-
- Any clues?
-
- --
- Terry Monks Automata Design Inc (703) 742-9400
-
-