linking erros
-
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)
-
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)
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
-
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)
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
-
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
if these classes are part of an external library, make sure the appropriate .lib files are listed in your Imports.
-
if these classes are part of an external library, make sure the appropriate .lib files are listed in your Imports.
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.
-
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.
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"
-
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.
-
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"
-
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
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.
-
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.
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"