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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Linker Error

Linker Error

Scheduled Pinned Locked Moved C / C++ / MFC
help
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.
  • U Offline
    U Offline
    uday kiran janaswamy
    wrote on last edited by
    #1

    Hi all, I am getting a Linker Error while Running the my exe. error LNK2001: unresolved external symbol "public: __thiscall What i have done is i placed a macro AFX_EXT_CLASS before the class definition to import that class. // code class AFX_EXT_CLASS CGTDMultiBitTrgSettingsDlg : public CGTDBasicDlg //code i am getting this problem what shall i do

    Uday kiran

    S D 2 Replies Last reply
    0
    • U uday kiran janaswamy

      Hi all, I am getting a Linker Error while Running the my exe. error LNK2001: unresolved external symbol "public: __thiscall What i have done is i placed a macro AFX_EXT_CLASS before the class definition to import that class. // code class AFX_EXT_CLASS CGTDMultiBitTrgSettingsDlg : public CGTDBasicDlg //code i am getting this problem what shall i do

      Uday kiran

      S Offline
      S Offline
      sujtha
      wrote on last edited by
      #2

      I think u had used static dll. If you have import any static dll, u have to consider two main things 1. Add the lib details in project settings 2. Add the header files into exe path And then compile.

      1 Reply Last reply
      0
      • U uday kiran janaswamy

        Hi all, I am getting a Linker Error while Running the my exe. error LNK2001: unresolved external symbol "public: __thiscall What i have done is i placed a macro AFX_EXT_CLASS before the class definition to import that class. // code class AFX_EXT_CLASS CGTDMultiBitTrgSettingsDlg : public CGTDBasicDlg //code i am getting this problem what shall i do

        Uday kiran

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        uday kiran janaswamy wrote:

        I am getting a Linker Error while Running the my exe.

        Not possible. If you have an .exe, then the linker has already been used and was successful. If the linker failed, then no .exe was produced.


        "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

        "Judge not by the eye but by the heart." - Native American Proverb

        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