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. linking erros

linking erros

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
10 Posts 7 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
    User 2070738
    wrote on last edited by
    #1

    use_NIST_B_163 (); EC_Domain_Parameters dp = NIST_B_163; I write this two lines of code and get these errors Linking... DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall BigInt::~BigInt(void)" (??1BigInt@@QAE@XZ) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall BigInt::BigInt(class BigInt const &)" (??0BigInt@@QAE@ABV0@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "void __cdecl str_to_BigInt(class std::basic_string,class std::allocator > const &,class BigInt &,int)" (?str_to_BigInt@@YAXABV?$basic_string@DU?$char _traits@D@std@@V?$allocator@D@2@@std@@AAVBigInt@@H@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall BigInt::BigInt(void)" (??0BigInt@@QAE@XZ) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall F2M::~F2M(void)" (??1F2M@@QAE@XZ) DSProjDlg.obj : error LNK2001: unresolved external symbol "void __cdecl str_to_F2M(class std::basic_string,class std::allocator > const &,class F2M &)" (?str_to_F2M@@YAXABV?$basic_string@DU?$char_traits@D@std @@V?$allocator@D@2@@std@@AAVF2M@@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall F2M::F2M(void)" (??0F2M@@QAE@XZ) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: virtual class std::basic_ostream > & __thiscall EC_Domain_Parameters::put(class std::basic_ostream > &)const " ( ?put@EC_Domain_Parameters@@UBEAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV23@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: class Point & __thiscall Point::operator=(class Point const &)" (??4Point@@QAEAAV0@ABV0@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: class BigInt & __thiscall BigInt::operator=(class BigInt const &)" (??4BigInt@@QAEAAV0@ABV0@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: class F2M & __thiscall F2M::operator=(class F2M const &)" (??4F2M@@QAEAAV0@ABV0@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall F2X::~F2X(void)" (??1F2X@@QAE@XZ) DSProjDlg.obj : error LNK2001: unresolved external symbol "void __cdecl setModulus(class F2X const &)" (?setModulus@@YAXABVF2X@@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "class F2X __cdecl Pentanomial(unsigned short,unsigned short,unsigned short,unsigned short,unsigned short)

    D C 2 Replies Last reply
    0
    • U User 2070738

      use_NIST_B_163 (); EC_Domain_Parameters dp = NIST_B_163; I write this two lines of code and get these errors Linking... DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall BigInt::~BigInt(void)" (??1BigInt@@QAE@XZ) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall BigInt::BigInt(class BigInt const &)" (??0BigInt@@QAE@ABV0@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "void __cdecl str_to_BigInt(class std::basic_string,class std::allocator > const &,class BigInt &,int)" (?str_to_BigInt@@YAXABV?$basic_string@DU?$char _traits@D@std@@V?$allocator@D@2@@std@@AAVBigInt@@H@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall BigInt::BigInt(void)" (??0BigInt@@QAE@XZ) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall F2M::~F2M(void)" (??1F2M@@QAE@XZ) DSProjDlg.obj : error LNK2001: unresolved external symbol "void __cdecl str_to_F2M(class std::basic_string,class std::allocator > const &,class F2M &)" (?str_to_F2M@@YAXABV?$basic_string@DU?$char_traits@D@std @@V?$allocator@D@2@@std@@AAVF2M@@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall F2M::F2M(void)" (??0F2M@@QAE@XZ) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: virtual class std::basic_ostream > & __thiscall EC_Domain_Parameters::put(class std::basic_ostream > &)const " ( ?put@EC_Domain_Parameters@@UBEAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV23@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: class Point & __thiscall Point::operator=(class Point const &)" (??4Point@@QAEAAV0@ABV0@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: class BigInt & __thiscall BigInt::operator=(class BigInt const &)" (??4BigInt@@QAEAAV0@ABV0@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: class F2M & __thiscall F2M::operator=(class F2M const &)" (??4F2M@@QAEAAV0@ABV0@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall F2X::~F2X(void)" (??1F2X@@QAE@XZ) DSProjDlg.obj : error LNK2001: unresolved external symbol "void __cdecl setModulus(class F2X const &)" (?setModulus@@YAXABVF2X@@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "class F2X __cdecl Pentanomial(unsigned short,unsigned short,unsigned short,unsigned short,unsigned short)

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

      titi@yahoo wrote: I write this two lines of code and get these errors If you remove them, do the linker errors persist?


      "One must learn from the bite of the fire to leave it alone." - Native American Proverb

      1 Reply Last reply
      0
      • U User 2070738

        use_NIST_B_163 (); EC_Domain_Parameters dp = NIST_B_163; I write this two lines of code and get these errors Linking... DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall BigInt::~BigInt(void)" (??1BigInt@@QAE@XZ) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall BigInt::BigInt(class BigInt const &)" (??0BigInt@@QAE@ABV0@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "void __cdecl str_to_BigInt(class std::basic_string,class std::allocator > const &,class BigInt &,int)" (?str_to_BigInt@@YAXABV?$basic_string@DU?$char _traits@D@std@@V?$allocator@D@2@@std@@AAVBigInt@@H@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall BigInt::BigInt(void)" (??0BigInt@@QAE@XZ) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall F2M::~F2M(void)" (??1F2M@@QAE@XZ) DSProjDlg.obj : error LNK2001: unresolved external symbol "void __cdecl str_to_F2M(class std::basic_string,class std::allocator > const &,class F2M &)" (?str_to_F2M@@YAXABV?$basic_string@DU?$char_traits@D@std @@V?$allocator@D@2@@std@@AAVF2M@@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall F2M::F2M(void)" (??0F2M@@QAE@XZ) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: virtual class std::basic_ostream > & __thiscall EC_Domain_Parameters::put(class std::basic_ostream > &)const " ( ?put@EC_Domain_Parameters@@UBEAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV23@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: class Point & __thiscall Point::operator=(class Point const &)" (??4Point@@QAEAAV0@ABV0@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: class BigInt & __thiscall BigInt::operator=(class BigInt const &)" (??4BigInt@@QAEAAV0@ABV0@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: class F2M & __thiscall F2M::operator=(class F2M const &)" (??4F2M@@QAEAAV0@ABV0@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall F2X::~F2X(void)" (??1F2X@@QAE@XZ) DSProjDlg.obj : error LNK2001: unresolved external symbol "void __cdecl setModulus(class F2X const &)" (?setModulus@@YAXABVF2X@@@Z) DSProjDlg.obj : error LNK2001: unresolved external symbol "class F2X __cdecl Pentanomial(unsigned short,unsigned short,unsigned short,unsigned short,unsigned short)

        C Offline
        C Offline
        Chris Losinger
        wrote on last edited by
        #3

        looks like you're missing the implementation for the F2X, BigInt and Point classes (and maybe others). do you have the files where those classes live ? Cleek | Image Toolkits | Thumbnail maker

        S 1 Reply Last reply
        0
        • C Chris Losinger

          looks like you're missing the implementation for the F2X, BigInt and Point classes (and maybe others). do you have the files where those classes live ? Cleek | Image Toolkits | Thumbnail maker

          S Offline
          S Offline
          SunKnight0
          wrote on last edited by
          #4

          if these classes are part of an external library, make sure the appropriate .lib files are listed in your Imports.

          U 1 Reply Last reply
          0
          • S SunKnight0

            if these classes are part of an external library, make sure the appropriate .lib files are listed in your Imports.

            U Offline
            U Offline
            User 2070738
            wrote on last edited by
            #5

            If I remove these two functions i.e use_NIST_B_163 (); EC_Domain_Parameters dp = NIST_B_163; I dont get any link errors. another thing is that the library Im using doent have any .lib file u can find the library here "http://dragongate-technologies.com/products.html#borZoi" plz help me.

            S A 2 Replies Last reply
            0
            • U User 2070738

              If I remove these two functions i.e use_NIST_B_163 (); EC_Domain_Parameters dp = NIST_B_163; I dont get any link errors. another thing is that the library Im using doent have any .lib file u can find the library here "http://dragongate-technologies.com/products.html#borZoi" plz help me.

              S Offline
              S Offline
              Steen Krogsgaard
              wrote on last edited by
              #6

              You're right there's no .lib file in the zip download. You have to include the source files in your project. From the manual: There's "Microsoft Visual C++: Add the ”borZoi.dsp” project file to your project’s workspace and add the header file directory to your project’s include files path." In my VC++6.0 this is done by "Project->Insert project into workspace..." Did you do this? You will include the source files (.cpp) in your project, and you should be able to see the classes in the class pane of VS. Remember to add the header file directory as well. I guess that the reason why you only see the linker errors after adding your to lines of code is that this is the only point in your app where you call use_NIST_B_163(), and hence this line makes the linker look for all the symbols that use_NIST_B_163() depends on. Cheers Steen. "To claim that computer games influence children is ridiculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"

              A 1 Reply Last reply
              0
              • U User 2070738

                If I remove these two functions i.e use_NIST_B_163 (); EC_Domain_Parameters dp = NIST_B_163; I dont get any link errors. another thing is that the library Im using doent have any .lib file u can find the library here "http://dragongate-technologies.com/products.html#borZoi" plz help me.

                A Offline
                A Offline
                Anonymous
                wrote on last edited by
                #7

                ok, this is what it looks like to me: This is a solution that you need to load with Visual Studio and compile/link. When you do that it produces a static link library (the .lib file) which you then include to your imports.

                1 Reply Last reply
                0
                • S Steen Krogsgaard

                  You're right there's no .lib file in the zip download. You have to include the source files in your project. From the manual: There's "Microsoft Visual C++: Add the ”borZoi.dsp” project file to your project’s workspace and add the header file directory to your project’s include files path." In my VC++6.0 this is done by "Project->Insert project into workspace..." Did you do this? You will include the source files (.cpp) in your project, and you should be able to see the classes in the class pane of VS. Remember to add the header file directory as well. I guess that the reason why you only see the linker errors after adding your to lines of code is that this is the only point in your app where you call use_NIST_B_163(), and hence this line makes the linker look for all the symbols that use_NIST_B_163() depends on. Cheers Steen. "To claim that computer games influence children is ridiculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"

                  A Offline
                  A Offline
                  Anonymous
                  wrote on last edited by
                  #8

                  by adding the header file directory do u mean to include in my projects include path?I thats so then ive done all that but still same errors??plz help me

                  L 1 Reply Last reply
                  0
                  • A Anonymous

                    by adding the header file directory do u mean to include in my projects include path?I thats so then ive done all that but still same errors??plz help me

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

                    by adding the header file directory do u mean to include in my projects include path?If thats so then ive done all that but still same errors??plz help me I u can give me ur e-mail Ill send u my project and maybe u can check my project settings.I really cant figure out whas the problem???Ive done all what I was supposed to do.

                    S 1 Reply Last reply
                    0
                    • L Lost User

                      by adding the header file directory do u mean to include in my projects include path?If thats so then ive done all that but still same errors??plz help me I u can give me ur e-mail Ill send u my project and maybe u can check my project settings.I really cant figure out whas the problem???Ive done all what I was supposed to do.

                      S Offline
                      S Offline
                      Steen Krogsgaard
                      wrote on last edited by
                      #10

                      You can just click the email button on my reply. I'll gladly look your project over, but I only have VC++6.0, so if you use VC.NET I can't help you. Cheers Steen. "To claim that computer games influence children is ridiculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"

                      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