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

This is a discussion on Linking Problem in C++(Unresolved external symbol ....) within the C++ Programming forums, part of the General Programming Boards category; Hi everybody, I have a number of .cpp and .h files. Each couple of them(.cpp and the corresponding .h) is ...

  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,662
    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, 08: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, 06:48 AM
  4. Problem with OpenGL tutorial
    By 2Biaz in forum Windows Programming
    Replies: 18
    Last Post: 09-16-2004, 12:02 PM
  5. debug to release modes
    By DavidP in forum Game Programming
    Replies: 5
    Last Post: 03-20-2003, 03:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21