Bulid Error Help

This is a discussion on Bulid Error Help within the C++ Programming forums, part of the General Programming Boards category; Hi, here is a source file about RFID - VC (exe, header and cpp) I wanna edit it by VC++ ...

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    41

    Bulid Error Help

    Hi, here is a source file about RFID - VC(exe, header and cpp)
    I wanna edit it by VC++ and VS , but it says:
    Code:
    MifareOneDemoDlg.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall CHexEdit::~CHexEdit(void)" (??1CHexEdit@@UAE@XZ)
    MifareOneDemoDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CHexEdit::CHexEdit(void)" (??0CHexEdit@@QAE@XZ)
    MifareOneDemoDlg.obj : error LNK2001: unresolved external symbol "public: void __thiscall CHexEdit::SetLimitTextEx(unsigned int)" (?SetLimitTextEx@CHexEdit@@QAEXI@Z)
    MifareOneDemoDlg.obj : error LNK2001: unresolved external symbol "public: void __thiscall CHexEdit::SetWindowTextEx(unsigned char *,int)" (?SetWindowTextEx@CHexEdit@@QAEXPAEH@Z)
    MifareOneDemoDlg.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall CHexEdit::GetTextLenEx(void)" (?GetTextLenEx@CHexEdit@@QAEIXZ)
    MifareOneDemoDlg.obj : error LNK2001: unresolved external symbol "public: void __thiscall CHexEdit::GetWindowTextEx(class CString &)" (?GetWindowTextEx@CHexEdit@@QAEXAAVCString@@@Z)
    Debug/MifareOneDemoDlg.exe : fatal error LNK1120: 6 unresolved externals
    I don't know why because i dont' have many C++ knowledge.
    And the code will be used in my project, it's quite urgent..
    Can some one help me to fix it?
    Thank a lot!

  2. #2
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,455
    The root of the problem is that the linker cannot find definitions or implementations of said functions.
    What causes this problem can be a number of things. If you have many source files, did you add them all to the project, for example?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Registered User
    Join Date
    Sep 2010
    Posts
    41
    Quote Originally Posted by Elysia View Post
    The root of the problem is that the linker cannot find definitions or implementations of said functions.
    What causes this problem can be a number of things. If you have many source files, did you add them all to the project, for example?
    The header files had been added into the cpp file.
    Is there any thing i need to do to add them to the project?

  4. #4
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,455
    All the source files need to be added to the project.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    Registered User
    Join Date
    Sep 2010
    Posts
    41
    Quote Originally Posted by Elysia View Post
    All the source files need to be added to the project.
    OH..ic...i was just trying to edit the cpp file.
    now i need to create a project,what type should i choose?Win 32 console application?

  6. #6
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,455
    You probably want a Win32 application.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #7
    Registered User
    Join Date
    Sep 2010
    Posts
    41
    Quote Originally Posted by Elysia View Post
    You probably want a Win32 application.
    OK,i create a project 'Test', and it says
    Code:
    LINK : fatal error LNK1104: cannot open file "Debug/TEST.exe"
    Error executing link.exe.
    what happened?

  8. #8
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,455
    Can you copy paste the build log?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  9. #9
    Registered User
    Join Date
    Sep 2010
    Posts
    41
    Quote Originally Posted by Elysia View Post
    Can you copy paste the build log?
    I create the new project and change the directory,it works now.
    And finally it alerts me " Load MasterCom.dll failed"...

  10. #10
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,455
    Sounds like the code relies on some 3rd party dlls. You need to put those in the same directory as your executable.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #11
    Registered User
    Join Date
    Sep 2010
    Posts
    41
    Quote Originally Posted by Elysia View Post
    Sounds like the code relies on some 3rd party dlls. You need to put those in the same directory as your executable.
    THANK YOU SO MUCH!!!!!
    it works!!
    Thank a lot!

  12. #12
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,455
    No problem.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. bulid a link in C++
    By SuperNewbie in forum C++ Programming
    Replies: 3
    Last Post: 07-16-2002, 08:47 AM

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