首页
社区
课程
招聘
[求助]使用miracl库的时候出现链接错误
发表于: 2007-5-17 14:50 6053

[求助]使用miracl库的时候出现链接错误

2007-5-17 14:50
6053
就是http://www.shamus.ie/index.php?page=elliptic-curves这里那个sea.cpp
编译通过
但是linking的时候出现了以下错误

--------------------Configuration: sea - Win32 Debug--------------------
Linking...
sea.obj : error LNK2001: unresolved external symbol "class PolyMod __cdecl operator-(class PolyMod const &,class PolyMod const &)" (??G@YA?AVPolyMod@@ABV0@0@Z)
sea.obj : error LNK2001: unresolved external symbol "public: class PolyMod & __thiscall PolyMod::operator*=(class PolyMod const &)" (??XPolyMod@@QAEAAV0@ABV0@@Z)
sea.obj : error LNK2001: unresolved external symbol "class PolyMod __cdecl operator+(class PolyMod const &,class PolyMod const &)" (??H@YA?AVPolyMod@@ABV0@0@Z)
sea.obj : error LNK2001: unresolved external symbol "class PolyMod __cdecl operator*(class ZZn const &,class PolyMod const &)" (??D@YA?AVPolyMod@@ABVZZn@@ABV0@@Z)
sea.obj : error LNK2001: unresolved external symbol "class PolyMod __cdecl operator*(class PolyMod const &,class PolyMod const &)" (??D@YA?AVPolyMod@@ABV0@0@Z)
sea.obj : error LNK2001: unresolved external symbol "class PolyMod __cdecl operator/(class PolyMod const &,class ZZn const &)" (??K@YA?AVPolyMod@@ABV0@ABVZZn@@@Z)
sea.obj : error LNK2001: unresolved external symbol "int __cdecl iszero(class PolyMod const &)" (?iszero@@YAHABVPolyMod@@@Z)
sea.obj : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class Big const &)" (??6@YAAAV?$basic_ostream@DU?
$char_traits@D@std@@@std@@AAV01@ABVBig@@@Z)
sea.obj : error LNK2001: unresolved external symbol "void __cdecl multi_add(int,class ECn *,class ECn *)" (?multi_add@@YAXHPAVECn@@0@Z)
sea.obj : error LNK2001: unresolved external symbol "int __cdecl operator%(class Big const &,int)" (??L@YAHABVBig@@H@Z)
sea.obj : error LNK2001: unresolved external symbol "public: int __thiscall ECn::get(class Big &)const " (?get@ECn@@QBEHAAVBig@@@Z)
sea.obj : error LNK2001: unresolved external symbol "class Big __cdecl operator*(class Big const &,int)" (??D@YA?AVBig@@ABV0@H@Z)
sea.obj : error LNK2001: unresolved external symbol "class Big __cdecl operator%(class Big const &,class Big const &)" (??L@YA?AVBig@@ABV0@0@Z)
sea.obj : error LNK2001: unresolved external symbol "class ECn __cdecl operator*(class Big const &,class ECn const &)" (??D@YA?AVECn@@ABVBig@@ABV0@@Z)
sea.obj : error LNK2001: unresolved external symbol "class Big __cdecl operator*(class Big const &,class Big const &)" (??D@YA?AVBig@@ABV0@0@Z)
sea.obj : error LNK2001: unresolved external symbol "class Big __cdecl operator/(class Big const &,int)" (??K@YA?AVBig@@ABV0@H@Z)
sea.obj : error LNK2001: unresolved external symbol "class Big __cdecl operator+(int,class Big const &)" (??H@YA?AVBig@@HABV0@@Z)
sea.obj : error LNK2001: unresolved external symbol "class Big __cdecl operator/(class Big const &,class Big const &)" (??K@YA?AVBig@@ABV0@0@Z)
sea.obj : error LNK2001: unresolved external symbol "class Big __cdecl operator+(class Big const &,class Big const &)" (??H@YA?AVBig@@ABV0@0@Z)
sea.obj : error LNK2001: unresolved external symbol "class Big __cdecl operator-(class Big const &,int)" (??G@YA?AVBig@@ABV0@H@Z)
sea.obj : error LNK2001: unresolved external symbol "class Big __cdecl operator-(class Big const &,class Big const &)" (??G@YA?AVBig@@ABV0@0@Z)
sea.obj : error LNK2001: unresolved external symbol "class Big __cdecl operator+(class Big const &,int)" (??H@YA?AVBig@@ABV0@H@Z)
sea.obj : error LNK2001: unresolved external symbol "class Big __cdecl operator*(int,class Big const &)" (??D@YA?AVBig@@HABV0@@Z)
sea.obj : error LNK2001: unresolved external symbol "class Big __cdecl sqrt(class Big const &)" (?sqrt@@YA?AVBig@@ABV1@@Z)
sea.obj : error LNK2001: unresolved external symbol "class Big __cdecl rand(class Big const &)" (?rand@@YA?AVBig@@ABV1@@Z)
sea.obj : error LNK2001: unresolved external symbol "class ZZn __cdecl operator/(class ZZn const &,class ZZn const &)" (??K@YA?AVZZn@@ABV0@0@Z)
sea.obj : error LNK2001: unresolved external symbol "class ZZn __cdecl operator*(class ZZn const &,class ZZn const &)" (??D@YA?AVZZn@@ABV0@0@Z)
sea.obj : error LNK2001: unresolved external symbol "class ZZn __cdecl operator/(class ZZn const &,int)" (??K@YA?AVZZn@@ABV0@H@Z)
sea.obj : error LNK2001: unresolved external symbol "class ZZn __cdecl operator-(class ZZn const &)" (??G@YA?AVZZn@@ABV0@@Z)
sea.obj : error LNK2001: unresolved external symbol "class Big __cdecl modmult(class Big const &,class Big const &,class Big const &)" (?modmult@@YA?AVBig@@ABV1@00@Z)
sea.obj : error LNK2001: unresolved external symbol "public: int __thiscall ECn::get(class Big &,class Big &)const " (?get@ECn@@QBEHAAVBig@@0@Z)
sea.obj : error LNK2001: unresolved external symbol "public: class Big __thiscall Crt::eval(int *)" (?eval@Crt@@QAE?AVBig@@PAH@Z)
sea.obj : error LNK2001: unresolved external symbol "public: __thiscall Crt::Crt(int,int *)" (??0Crt@@QAE@HPAH@Z)
sea.obj : error LNK2001: unresolved external symbol "public: void __thiscall Poly::clear(void)" (?clear@Poly@@QAEXXZ)
sea.obj : error LNK2001: unresolved external symbol "class Poly Modulus" (?Modulus@@3VPoly@@A)
sea.obj : error LNK2001: unresolved external symbol "public: class ZZn __thiscall Poly::min(void)const " (?min@Poly@@QBE?AVZZn@@XZ)
sea.obj : error LNK2001: unresolved external symbol "class Poly __cdecl divxn(class Poly const &,int)" (?divxn@@YA?AVPoly@@ABV1@H@Z)
sea.obj : error LNK2001: unresolved external symbol "public: class Poly & __thiscall Poly::operator-=(class Poly const &)" (??ZPoly@@QAEAAV0@ABV0@@Z)
sea.obj : error LNK2001: unresolved external symbol "class Poly __cdecl operator*(class ZZn const &,class Poly const &)" (??D@YA?AVPoly@@ABVZZn@@ABV0@@Z)
sea.obj : error LNK2001: unresolved external symbol "public: class Poly & __thiscall Poly::operator+=(class Poly const &)" (??YPoly@@QAEAAV0@ABV0@@Z)
sea.obj : error LNK2001: unresolved external symbol "class Poly __cdecl modxn(class Poly const &,int)" (?modxn@@YA?AVPoly@@ABV1@H@Z)
sea.obj : error LNK2001: unresolved external symbol "class ZZn __cdecl operator-(class ZZn const &,int)" (??G@YA?AVZZn@@ABV0@H@Z)
sea.obj : error LNK2001: unresolved external symbol "class ZZn __cdecl pow(class ZZn const &,int)" (?pow@@YA?AVZZn@@ABV1@H@Z)
sea.obj : error LNK2001: unresolved external symbol "public: class ZZn __thiscall PolyXY::F(class ZZn const &,class ZZn const &)" (?F@PolyXY@@QAE?AVZZn@@ABV2@0@Z)
sea.obj : error LNK2001: unresolved external symbol "class PolyXY __cdecl diff_dy(class PolyXY const &)" (?diff_dy@@YA?AVPolyXY@@ABV1@@Z)
sea.obj : error LNK2001: unresolved external symbol "class PolyXY __cdecl diff_dx(class PolyXY const &)" (?diff_dx@@YA?AVPolyXY@@ABV1@@Z)
sea.obj : error LNK2001: unresolved external symbol "class ZZn __cdecl sqrt(class ZZn const &)" (?sqrt@@YA?AVZZn@@ABV1@@Z)
sea.obj : error LNK2001: unresolved external symbol "public: class ZZn __thiscall Poly::coeff(int)const " (?coeff@Poly@@QBE?AVZZn@@H@Z)
sea.obj : error LNK2001: unresolved external symbol "int __cdecl degree(class Poly const &)" (?degree@@YAHABVPoly@@@Z)
sea.obj : error LNK2001: unresolved external symbol "public: class Poly __thiscall PolyXY::F(class ZZn const &)" (?F@PolyXY@@QAE?AVPoly@@ABVZZn@@@Z)
sea.obj : error LNK2001: unresolved external symbol "public: class PolyXY & __thiscall PolyXY::operator=(class PolyXY const &)" (??4PolyXY@@QAEAAV0@ABV0@@Z)
sea.obj : error LNK2001: unresolved external symbol "class PolyMod __cdecl compose(class PolyMod const &,class PolyMod const &)" (?compose@@YA?AVPolyMod@@ABV1@0@Z)
sea.obj : error LNK2001: unresolved external symbol "class Poly __cdecl operator/(class Poly const &,class ZZn const &)" (??K@YA?AVPoly@@ABV0@ABVZZn@@@Z)
sea.obj : error LNK2001: unresolved external symbol "class Poly __cdecl operator-(class Poly const &,class Poly const &)" (??G@YA?AVPoly@@ABV0@0@Z)
sea.obj : error LNK2001: unresolved external symbol "class Big __cdecl pow(class Big const &,int)" (?pow@@YA?AVBig@@ABV1@H@Z)
sea.obj : error LNK2001: unresolved external symbol "class ZZn __cdecl operator-(class ZZn const &,class ZZn const &)" (??G@YA?AVZZn@@ABV0@0@Z)
sea.obj : error LNK2001: unresolved external symbol "int __cdecl isone(class Poly const &)" (?isone@@YAHABVPoly@@@Z)
sea.obj : error LNK2001: unresolved external symbol "class Poly __cdecl gcd(class PolyMod const &)" (?gcd@@YA?AVPoly@@ABVPolyMod@@@Z)
sea.obj : error LNK2001: unresolved external symbol "class PolyMod __cdecl pow(class PolyMod const &,class Big const &)" (?pow@@YA?AVPolyMod@@ABV1@ABVBig@@@Z)
sea.obj : error LNK2001: unresolved external symbol "void __cdecl setmod(class Poly const &)" (?setmod@@YAXABVPoly@@@Z)
sea.obj : error LNK2001: unresolved external symbol "class ZZn __cdecl operator+(class ZZn const &,class ZZn const &)" (??H@YA?AVZZn@@ABV0@0@Z)
sea.obj : error LNK2001: unresolved external symbol "class ZZn __cdecl operator*(int,class ZZn const &)" (??D@YA?AVZZn@@HABV0@@Z)
sea.obj : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class Poly const &)" (??6@YAAAV?$basic_ostream@DU
?$char_traits@D@std@@@std@@AAV01@ABVPoly@@@Z)
sea.obj : error LNK2001: unresolved external symbol "public: class Poly & __thiscall Poly::operator=(class Poly const &)" (??4Poly@@QAEAAV0@ABV0@@Z)
sea.obj : error LNK2001: unresolved external symbol "class Poly __cdecl operator*(class Poly const &,class Poly const &)" (??D@YA?AVPoly@@ABV0@0@Z)
sea.obj : error LNK2001: unresolved external symbol "public: class term * __thiscall Poly::addterm(class ZZn const &,int,class term *)" (?addterm@Poly@@QAEPAVterm@@ABVZZn@@HPAV2@@Z)
sea.obj : error LNK2001: unresolved external symbol "public: class Poly & __thiscall Poly::operator=(int)" (??4Poly@@QAEAAV0@H@Z)
sea.obj : error LNK2001: unresolved external symbol "void __cdecl ecurve(class Big const &,class Big const &,class Big const &,int)" (?ecurve@@YAXABVBig@@00H@Z)
sea.obj : error LNK2001: unresolved external symbol "public: class termXY * __thiscall PolyXY::addterm(class ZZn const &,int,int,class termXY *)" (?addterm@PolyXY@@QAEPAVtermXY@@ABVZZn@@HHPAV2@@Z)
sea.obj : error LNK2001: unresolved external symbol "public: void __thiscall PolyXY::clear(void)" (?clear@PolyXY@@QAEXXZ)
sea.obj : error LNK2001: unresolved external symbol "void __cdecl modulo(class Big const &)" (?modulo@@YAXABVBig@@@Z)
sea.obj : error LNK2001: unresolved external symbol "class std::basic_istream<char,struct std::char_traits<char> > & __cdecl operator>>(class std::basic_istream<char,struct std::char_traits<char> > &,class Big &)" (??5@YAAAV?$basic_istream@DU?$char_
traits@D@std@@@std@@AAV01@AAVBig@@@Z)
sea.obj : error LNK2001: unresolved external symbol "public: __thiscall Poly::~Poly(void)" (??1Poly@@QAE@XZ)
sea.obj : error LNK2001: unresolved external symbol "public: __thiscall PolyXY::~PolyXY(void)" (??1PolyXY@@QAE@XZ)
sea.obj : error LNK2001: unresolved external symbol "public: struct bigtype * __thiscall Big::getbig(void)const " (?getbig@Big@@QBEPAUbigtype@@XZ)
sea.obj : error LNK2001: unresolved external symbol "class Poly __cdecl operator%(class Poly const &,class Poly const &)" (??L@YA?AVPoly@@ABV0@0@Z)
sea.obj : error LNK2001: unresolved external symbol "void __cdecl reduce(class Poly const &,class PolyMod &)" (?reduce@@YAXABVPoly@@AAVPolyMod@@@Z)
sea.obj : error LNK2001: unresolved external symbol "public: class Poly & __thiscall Poly::operator*=(class ZZn const &)" (??XPoly@@QAEAAV0@ABVZZn@@@Z)
Debug/sea.exe : fatal error LNK1120: 78 unresolved externals
执行 link.exe 时出错.

sea.exe - 1 error(s), 0 warning(s)

请问该如何解决?

[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)

收藏
免费 0
支持
分享
最新回复 (1)
雪    币: 201
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
自己搞定了
原来是工程里面少加了几个文件……
2007-5-18 16:26
0
游客
登录 | 注册 方可回帖
返回
//