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. error(plz give the solution for this)

error(plz give the solution for this)

Scheduled Pinned Locked Moved C / C++ / MFC
debugginghelp
5 Posts 4 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.
  • R Offline
    R Offline
    Reddyb
    wrote on last edited by
    #1

    Debug/Dialer.exe : fatal error LNK1120: 4 unresolved externals

    H C G 4 Replies Last reply
    0
    • R Reddyb

      Debug/Dialer.exe : fatal error LNK1120: 4 unresolved externals

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      Can you be more specific Do you see MSDN

      1 Reply Last reply
      0
      • R Reddyb

        Debug/Dialer.exe : fatal error LNK1120: 4 unresolved externals

        C Offline
        C Offline
        Cedric Moonen
        wrote on last edited by
        #3

        Can you provide more information ? How can we help you with so limited information. Did you link to all necessary libraries ?

        1 Reply Last reply
        0
        • R Reddyb

          Debug/Dialer.exe : fatal error LNK1120: 4 unresolved externals

          G Offline
          G Offline
          guestcat
          wrote on last edited by
          #4

          hi, i guess this is a simple probelem where u forgot to link with your .lib file. in the linker error you can get the function names which are not resolve. and include the .lib file in your project > settings > link > Object/Library modules. enter your .lib file name here. and rebuild all - ^-^ @|@ - redCat

          1 Reply Last reply
          0
          • R Reddyb

            Debug/Dialer.exe : fatal error LNK1120: 4 unresolved externals

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            maybe your error is(I guess)

            you declare one function in header file but you havent this file in your code
            like this:

            this is one example

            //////in header file CAnswer.h/////////
            class CAnswer : public CDialog
            ...
            ...
            public:
            int test();
            ....
            };

            then you call this function in your file

            void CAnswer::OnBnClickedButton2()
            {
            test();//Now you get this error
            you need to delete this function(test) or you need to write test(function)
            }

            Answer error LNK2019: unresolved external symbol "public: int __thiscall CAnswer::test(void)" (?test@CAnswer@@QAEHXZ) referenced in function "public: void __thiscall CAnswer::OnBnClickedButton2(void)" (?OnBnClickedButton2@CAnswer@@QAEXXZ)

            Answer fatal error LNK1120: 1 unresolved externals

            or maybe this function is in your code like this

            int test()
            {
            return 0;
            }

            again you get this error


            or you need to import lib file to your project

            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