Hi there. I'm new in C++ and I just found out the MIRACL library to perform cryptography.
I tried compile the sample code in Visual C++ , in which the code is included inside the library folder (
http://www.shamus.ie/index.php?page=Downloads). It end up with some errors. I had add the miracl.lib and the header file big.h, miracl.h, mirdef.h, zzn.h inside the project too. Am I missing out some library which should be included? Or is there anyway to solve this?
1>sample.cpp
1>Linking...
1>sample.obj : error LNK2019: unresolved external symbol "class Flash __cdecl pow(class Flash const &,class Flash const &)" (?pow@@YA?AVFlash@@ABV1@0@Z) referenced in function _main
1>sample.obj : error LNK2019: unresolved external symbol "class Flash __cdecl exp(class Flash const &)" (?exp@@YA?AVFlash@@ABV1@@Z) referenced in function _main
1>sample.obj : error LNK2019: unresolved external symbol "class Flash __cdecl operator*(class Flash const &,class Flash const &)" (??D@YA?AVFlash@@ABV0@0@Z) referenced in function _main
1>sample.obj : error LNK2019: unresolved external symbol "class Flash __cdecl sqrt(class Flash const &)" (?sqrt@@YA?AVFlash@@ABV1@@Z) referenced in function _main
1>sample.obj : error LNK2019: 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 Flash const &)" (??6@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV01@ABVFlash@@@Z) referenced in function _main
1>sample.obj : error LNK2019: unresolved external symbol "class Flash __cdecl pi(void)" (?pi@@YA?AVFlash@@XZ) referenced in function _main
1>C:\Users\User\Documents\Visual Studio 2008\Projects\brent\Debug\brent.exe : fatal error LNK1120: 6 unresolved externals
1>Build log was saved at "file://c:\Users\User\Documents\Visual Studio 2008\Projects\brent\brent\Debug\BuildLog.htm"
1>brent - 7 error(s), 0 warning(s)