Thread: Linking Problem in C++(Unresolved external symbol ....)

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    16

    Linking Problem in C++(Unresolved external symbol ....)

    Hi everybody,

    I have a number of .cpp and .h files. Each couple of them(.cpp and the corresponding .h) is compiled correctly. The application compiles successfully, but in the link process an error occurs.

    The error is:
    main.obj : error LNK2001: unresolved external symbol "public: __thiscall AssociationList<class Member,class Book>::AssociationList<class Member,class Book>(void)" (??0?$AssociationList@VMember@@VBook@@@@QAE@XZ)


    Could anyone tell me what is all about?
    P.S If necessary please tell me to send over the code.

    Regards,
    grscot

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    Did you include all the .h files at the top of the file with main() in it?

  3. #3
    Registered User
    Join Date
    Apr 2003
    Posts
    23
    Two things to makesure:

    1. Implementation of that function, do you have a function body for all the function you've declare in the .h file?

    2. If you're using VC++ or some IDE, is the .cpp files included into the Project Workspace?
    Merc

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Unresolved External Symbol?
    By AYT in forum C Programming
    Replies: 3
    Last Post: 06-11-2009, 07:05 PM
  2. Linker Errors
    By beene in forum Game Programming
    Replies: 6
    Last Post: 11-18-2006, 12:09 PM
  3. Replies: 3
    Last Post: 06-16-2006, 05:48 AM
  4. Problem with OpenGL tutorial
    By 2Biaz in forum Windows Programming
    Replies: 18
    Last Post: 09-16-2004, 11:02 AM
  5. debug to release modes
    By DavidP in forum Game Programming
    Replies: 5
    Last Post: 03-20-2003, 03:01 PM