Problem with Miracl Library(Shamus Softwares)

This is a discussion on Problem with Miracl Library(Shamus Softwares) within the C++ Programming forums, part of the General Programming Boards category; Guys, as for introducion, I can code up simple stuff with c++. But what I suck in is installing & ...

  1. #1
    Registered User
    Join Date
    Jan 2011
    Location
    Calcutta, India, India
    Posts
    18

    Smile Problem with Miracl Library(Shamus Softwares)

    Guys, as for introducion, I can code up simple stuff with c++.
    But what I suck in is installing & making third party libraies work.

    As for my hobby, I love cryptography & I am basically a Delphi coder.

    I am trying to grasp c++ aswell.

    So for that purpose, bignum libraries are very important in my work.
    I've read the readme inside miracl & did accordingly, but in vain.

    When I compile my code, its perfect, but when I build it, i get some unreferenced exceptions.

    Then I read more, & discovered that the release build (VC++ 2008) uses code optimizations which miracl doesn't support.
    I disabled it, but still I get those unreferenced exceptions.

    I am using VC++ 2008 & latest miracl version, downloadable from : Shamus Software Limited - Home .

    I'll attach my project here, if there is a need for it.

    I am looking for some help guys.

    Best Regards
    KKR

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    You need to make sure you're linking with the library you want to link with. (I.e., look at page 16 of the user manual.)

  3. #3
    Registered User
    Join Date
    Jan 2011
    Location
    Calcutta, India, India
    Posts
    18
    I am not quite famaliar with C++ workings.
    I've included miracl.h & mirdef.h
    Do I include the project ?

  4. #4
    Registered User
    Join Date
    Aug 2005
    Posts
    266
    make sure your complier linker settings include these libraries, not just in the code itself.

  5. #5
    Registered User
    Join Date
    Jan 2011
    Location
    Calcutta, India, India
    Posts
    18
    hmm.. How to do that ?

  6. #6
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    You read page 16 of the user manual which has step-by-step instructions on doing exactly this.

  7. #7
    Registered User
    Join Date
    Jan 2011
    Location
    Calcutta, India, India
    Posts
    18
    Yeah.. read that.. but I dont have that ms32.lib
    Its not included in the downloaded miracl package

    Step 3 : Select “library fil es (. li b)” from the “Files of type” drop-down li st. Lo ok for
    the precom piled MIRACL library file ms32. lib , and insert it into the project.
    Last edited by KKR_WE_RULE; 01-20-2011 at 09:31 AM.

  8. #8
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    If you didn't get a version, then you should read ahead a few lines or so to "To create a new version of the library".

  9. #9
    Registered User
    Join Date
    Jan 2011
    Location
    Calcutta, India, India
    Posts
    18
    Alright.. Doing it right away

  10. #10
    Registered User
    Join Date
    Jan 2011
    Location
    Calcutta, India, India
    Posts
    18
    Ok guys, I did everything according to the manual.
    Created everything from scratch.

    But now that I include them & try to make a demo protection , I get the same problems.

    Here is the download lnk to the project (mrcl.lib, & mirdef.h) are created as directred in the manual.

    KeyGenMe.rar — RGhost — file sharing

    Best Regards
    KKR

  11. #11
    Registered User
    Join Date
    Jan 2011
    Location
    Calcutta, India, India
    Posts
    18
    The errors that I see are :

    Mrcl.lib(mrcore.obj) : error LNK2001: unresolved external symbol _mr_alloc
    Mrcl.lib(mrcore.obj) : error LNK2001: unresolved external symbol _mr_first_alloc
    Mrcl.lib(mrcore.obj) : error LNK2001: unresolved external symbol _mr_free

  12. #12
    Registered User
    Join Date
    Oct 2006
    Posts
    2,297
    it looks to me like you're trying to write a key generator program as an attempt to hack or steal software. this is explicitly forbidden by the forum rules

    we will not help you with such a project.

  13. #13
    Registered User
    Join Date
    Jan 2011
    Location
    Calcutta, India, India
    Posts
    18
    omg.. No..I am trying to write a demo protection scheme to protect my software & release it in Net to see how vulnarable it is to rce.

    This in no way is related to hacking a real software.

  14. #14
    Registered User
    Join Date
    Feb 2011
    Posts
    1
    Hello!
    In this library there are two types ECn and Big from MIRACL. As can be established between them to convert?
    I have tried:
    Code:
    ECn x;
    Big y;
    y = (Big) x;
    x = (ECn) y;
    Is NOT running

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 10:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21