home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / cplus / 18558 < prev    next >
Encoding:
Text File  |  1992-12-30  |  649 b   |  41 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!adimail!tel
  3. From: tel@adimail.uucp (Terry Monks)
  4. Subject: More Gnu C++ fun
  5. Message-ID: <1992Dec30.195714.9824@adimail.uucp>
  6. Organization: Automata Design, Inc.
  7. X-Newsreader: TIN [version 1.1 PL7]
  8. Date: Wed, 30 Dec 1992 19:57:14 GMT
  9. Lines: 30
  10.  
  11. This minimal program
  12.  
  13.  
  14. class node 
  15. {
  16. public:
  17.   static int level;
  18.   
  19.   node(){};
  20. };
  21.  
  22. main()
  23. {
  24.   node::level=1;
  25. }
  26.  
  27.  
  28. compiles and links fine using the AT&T compiler from Sun, but will not link
  29. under Gnu c++.  (sparc-sun-sunos.4.1)
  30.  
  31. I get the message
  32. ld: Undefined symbol
  33.    __4node$level
  34.  
  35.  
  36. Any clues?
  37.  
  38. -- 
  39. Terry Monks        Automata Design Inc    (703) 742-9400
  40.  
  41.