NO

Author Topic: Problem with Miracl Library (Shamus Softwares)  (Read 18071 times)

kkwoei88

  • Guest
Re: Problem with Miracl Library (Shamus Softwares)
« Reply #30 on: February 27, 2011, 04:45:48 PM »
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?

Quote
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)

Offline Stefan Pendl

  • Global Moderator
  • Member
  • *****
  • Posts: 582
    • Homepage
Re: Problem with Miracl Library (Shamus Softwares)
« Reply #31 on: February 27, 2011, 06:48:26 PM »
Pelles C does not support C++ at all, it is only supporting plain ANSI C.

You would better ask at a C++ or Visual Studio forum.
---
Stefan

Proud member of the UltraDefrag Development Team

kkwoei88

  • Guest
Re: Problem with Miracl Library (Shamus Softwares)
« Reply #32 on: February 27, 2011, 06:51:53 PM »
opps my mistake. Thanks anyway!   :)

mutluceengineer

  • Guest
Re: Problem with Miracl Library (Shamus Softwares)
« Reply #33 on: December 18, 2012, 09:06:44 PM »
Hi,

I m writing some crypto functions using Miracl library.
My problem is about arrays. I want to let user input the
size of the array (type:big). How can I do that?

CommonTater

  • Guest
Re: Problem with Miracl Library (Shamus Softwares)
« Reply #34 on: December 18, 2012, 10:29:05 PM »
I m writing some crypto functions using Miracl library.
My problem is about arrays. I want to let user input the
size of the array (type:big). How can I do that?

Lookup scanf() and malloc() in your help file....