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. Unresolved externals - Ugh!

Unresolved externals - Ugh!

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
5 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.
  • B Offline
    B Offline
    Bret Faller
    wrote on last edited by
    #1

    I am developing a program in eVC and for some reason I am getting these unresolved externals, any ideas? Also, it worked before but suddenly no more. unresolved external symbol "protected: virtual long (__cdecl** __cdecl CWnd::GetSuperWndProcAddr(void))(void *,unsigned int,unsigned int,long)" (?GetSuperWndProcAddr@CWnd@@MAAPAP6AJPAXIIJ@ZXZ) unresolved external symbol "public: virtual void __cdecl CFrameWnd::OnUpdateFrameMenu(void *)" (?OnUpdateFrameMenu@CFrameWnd@@UAAXPAX@Z) unresolved external symbol "public: virtual void * __cdecl CFrameWnd::GetDefaultAccelerator(void)" (?GetDefaultAccelerator@CFrameWnd@@UAAPAXXZ) unresolved external symbol "public: virtual void __cdecl CFrameWnd::DelayUpdateFrameMenu(void *)" (?DelayUpdateFrameMenu@CFrameWnd@@UAAXPAX@Z) unresolved external symbol "public: void * __cdecl CFrameWnd::InsertMenuW(unsigned short const *)" (?InsertMenuW@CFrameWnd@@QAAPAXPBG@Z) unresolved external symbol "public: void * __cdecl CWnd::GetSafeHwnd(void)const " (?GetSafeHwnd@CWnd@@QBAPAXXZ) unresolved external symbol "public: virtual void * __cdecl CDocument::GetDefaultMenu(void)" (?GetDefaultMenu@CDocument@@UAAPAXXZ) unresolved external symbol "public: virtual void * __cdecl CDocument::GetDefaultAccelerator(void)" (?GetDefaultAccelerator@CDocument@@UAAPAXXZ) MIPSDbg/OLEDBCE.exe : fatal error LNK1120: 8 unresolved externals Error executing link.exe. Any help is greatly appreciated. Bret Faller Odyssey Computing, Inc.

    J L 2 Replies Last reply
    0
    • B Bret Faller

      I am developing a program in eVC and for some reason I am getting these unresolved externals, any ideas? Also, it worked before but suddenly no more. unresolved external symbol "protected: virtual long (__cdecl** __cdecl CWnd::GetSuperWndProcAddr(void))(void *,unsigned int,unsigned int,long)" (?GetSuperWndProcAddr@CWnd@@MAAPAP6AJPAXIIJ@ZXZ) unresolved external symbol "public: virtual void __cdecl CFrameWnd::OnUpdateFrameMenu(void *)" (?OnUpdateFrameMenu@CFrameWnd@@UAAXPAX@Z) unresolved external symbol "public: virtual void * __cdecl CFrameWnd::GetDefaultAccelerator(void)" (?GetDefaultAccelerator@CFrameWnd@@UAAPAXXZ) unresolved external symbol "public: virtual void __cdecl CFrameWnd::DelayUpdateFrameMenu(void *)" (?DelayUpdateFrameMenu@CFrameWnd@@UAAXPAX@Z) unresolved external symbol "public: void * __cdecl CFrameWnd::InsertMenuW(unsigned short const *)" (?InsertMenuW@CFrameWnd@@QAAPAXPBG@Z) unresolved external symbol "public: void * __cdecl CWnd::GetSafeHwnd(void)const " (?GetSafeHwnd@CWnd@@QBAPAXXZ) unresolved external symbol "public: virtual void * __cdecl CDocument::GetDefaultMenu(void)" (?GetDefaultMenu@CDocument@@UAAPAXXZ) unresolved external symbol "public: virtual void * __cdecl CDocument::GetDefaultAccelerator(void)" (?GetDefaultAccelerator@CDocument@@UAAPAXXZ) MIPSDbg/OLEDBCE.exe : fatal error LNK1120: 8 unresolved externals Error executing link.exe. Any help is greatly appreciated. Bret Faller Odyssey Computing, Inc.

      J Offline
      J Offline
      J Patel
      wrote on last edited by
      #2

      I think adding MFC42.lib in your lib path would help. HTH Jignesh

      B 1 Reply Last reply
      0
      • J J Patel

        I think adding MFC42.lib in your lib path would help. HTH Jignesh

        B Offline
        B Offline
        Bret Faller
        wrote on last edited by
        #3

        MFC42.lib is for the desktop. I am using embeddedVC++ which the lib is called mfcce211.lib which is already being linked. Thanks though. Bret Faller Odyssey Computing, Inc.

        1 Reply Last reply
        0
        • B Bret Faller

          I am developing a program in eVC and for some reason I am getting these unresolved externals, any ideas? Also, it worked before but suddenly no more. unresolved external symbol "protected: virtual long (__cdecl** __cdecl CWnd::GetSuperWndProcAddr(void))(void *,unsigned int,unsigned int,long)" (?GetSuperWndProcAddr@CWnd@@MAAPAP6AJPAXIIJ@ZXZ) unresolved external symbol "public: virtual void __cdecl CFrameWnd::OnUpdateFrameMenu(void *)" (?OnUpdateFrameMenu@CFrameWnd@@UAAXPAX@Z) unresolved external symbol "public: virtual void * __cdecl CFrameWnd::GetDefaultAccelerator(void)" (?GetDefaultAccelerator@CFrameWnd@@UAAPAXXZ) unresolved external symbol "public: virtual void __cdecl CFrameWnd::DelayUpdateFrameMenu(void *)" (?DelayUpdateFrameMenu@CFrameWnd@@UAAXPAX@Z) unresolved external symbol "public: void * __cdecl CFrameWnd::InsertMenuW(unsigned short const *)" (?InsertMenuW@CFrameWnd@@QAAPAXPBG@Z) unresolved external symbol "public: void * __cdecl CWnd::GetSafeHwnd(void)const " (?GetSafeHwnd@CWnd@@QBAPAXXZ) unresolved external symbol "public: virtual void * __cdecl CDocument::GetDefaultMenu(void)" (?GetDefaultMenu@CDocument@@UAAPAXXZ) unresolved external symbol "public: virtual void * __cdecl CDocument::GetDefaultAccelerator(void)" (?GetDefaultAccelerator@CDocument@@UAAPAXXZ) MIPSDbg/OLEDBCE.exe : fatal error LNK1120: 8 unresolved externals Error executing link.exe. Any help is greatly appreciated. Bret Faller Odyssey Computing, Inc.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I have had the same problem. I resolved the linking errors you are experiening by adding the libraries I needed as dependencies on the current project. This allowed it to access there objects that it needed. The trouble I later ran into was the code wanted a link to a pre-defined term that should be there according to the #include and the library. The funny thing was that it was only an error in debug. Sean

          L 1 Reply Last reply
          0
          • L Lost User

            I have had the same problem. I resolved the linking errors you are experiening by adding the libraries I needed as dependencies on the current project. This allowed it to access there objects that it needed. The trouble I later ran into was the code wanted a link to a pre-defined term that should be there according to the #include and the library. The funny thing was that it was only an error in debug. Sean

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Sigh. There is always some truth to measure twice and cut once. Upon looking back, I found that I had included the libraries I need in the release copy but not in the Debug. The problem I have run into is that there is no one else in my office that does C++ so if I don't have someone to ask. Glad this forum was here, my program is working now. Sean

            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