Thread: global variables

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    13
    I included them as static members of the base class in my class heirarchy. Therefore every class has access to them.

    Still, i'm getting linker errors saying that it they are "unresolved global symbols". Help?!

    (also as a sidenote, should i be able to access it with Base::staticvariable?, i'm not anywhere, but was curious)
    Last edited by shadovv; 10-23-2005 at 11:07 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 08-06-2008, 09:59 AM
  2. scope of global variables
    By laertius in forum C++ Programming
    Replies: 4
    Last Post: 10-15-2006, 01:59 AM
  3. global variables - okay sometimes...?
    By MadHatter in forum C++ Programming
    Replies: 21
    Last Post: 01-21-2003, 04:23 PM
  4. global variables
    By rdnjr in forum Linux Programming
    Replies: 0
    Last Post: 01-07-2003, 10:28 AM
  5. Global variables? Bad! Yes, but to what extent?
    By Boksha in forum C++ Programming
    Replies: 6
    Last Post: 05-26-2002, 04:37 PM