Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Linking problem in C++(Unresolved external symbol...)

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

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    grscot
    wrote on last edited by
    #1

    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::AssociationList(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

    T W 2 Replies Last reply
    0
    • G grscot

      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::AssociationList(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

      T Offline
      T Offline
      Toni78
      wrote on last edited by
      #2

      Could you post the header where this function is declared and the .cpp file file? Just the relevant parts though, including the preprocessor directives. That might be helpful. AssociationList::AssociationList(void) // Afterall I realized that even my comment lines have bugs

      1 Reply Last reply
      0
      • G grscot

        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::AssociationList(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

        W Offline
        W Offline
        WREY
        wrote on last edited by
        #3

        Did you put a ";" (semicolon) after the last parenthesis? Also, did you defined the constructor in the ".cpp" file? :cool: William Fortes in fide et opere!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups