Thread: unresolved external symbol freaking me out!

  1. #1

    Question unresolved external symbol freaking me out!

    I have a problem which i cant seem to figure out. Now where to begin. I have a linked list template class i wrote which i know that it works perfectly with what ever kind of data i want to use, std data type, class, whatever. Now im writing a program that will need this linked list class. Ok, i have a class called CParser which has my list declared in it under the private section of the CParser class which looks like this: CList< CProperty > *m_pProperty;

    Now CProperty is a simple class which just has two char[] variables and two member functions. In my CParser class i allocate m_pProperty correctly ( m_pProperty = new CList<CProperty>; ) in the constructor and kill it off in the destructor. Now i have also made sure that all my headers have that #ifndef blahblah #define blahblah thing so they wont be included more than once. Ok, in my CParser class i have a private member function which parses a particular part of a txt file. Inside of this function i read in the data like needed, then store that into a temp CProperty class, after that is done i add it to my list like so: m_pProperty->InsertBack( tempProperty );

    Well for some reason when i call that function or any other function a part of my linked list template class in which i have to pass something into i get an unresolved external symbol. This makes no sence b/c i have every thing added into my project like im supposed to. I can call other member functions in my list like for example : m_pProperty->IsEmpty() or m_pProperty->DeleteList(); and that works just fine. Could any one give me some pointers on what may cause this? I made a test app for this linked list class and it works fine. I made a simple class and used that as my data type in my list: CList< CTestClass > *testlist = new CList< CTestClass >; like that and it has no problems. So i know my linked list class doesnt have a problem with using classes as the type.

    Very wierd.

  2. #2
    Registered User
    Join Date
    Feb 2002
    Do you have any static mambers in your classes? in that case you have to declare the static member outside your class also...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  4. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  5. debug to release modes
    By DavidP in forum Game Programming
    Replies: 5
    Last Post: 03-20-2003, 03:01 PM