Probleme avec libgmp-10.dll

Windows specific forum
Shade
User
User
Posts: 10
Joined: Thu May 08, 2014 10:03 am

Probleme avec libgmp-10.dll

Post by Shade »

salut tous le monde
je developpe un logiciel de crytage (enfin j'essai lol ) est j'ai besoins de la libgmp-10.dll pour tous le systeme de calcule de cles etc...
mais quand je compile la dll nikel bien compiler en x64 comme le compilateur de PB, mais quand je compile le logiciel il me fait une erreur sur la dll

Code: Select all

error : invalid machine type in object

suivie du lien vers la *.dll qui est correcte, est j'arrive pas a savoir se qui bloque si c'est au niveau de PB ou autre

je vous remercie de votre aide

// English translation by DeepL (Kiffi)

hi everyone
I'm developing an encryption software (well I'm trying lol ) and I need the libgmp-10.dll for all the key calculation system etc...
but when i compile the dll nikel well compile in x64 like the PB compiler, but when i compile the software it gives me an error on the dll

Code: Select all

error : invalid machine type in object

I'm not sure if it's the PB compiler or something else.

Thank you for your help
User avatar
idle
Always Here
Always Here
Posts: 5888
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Probleme avec libgmp-10.dll

Post by idle »

it's probably a 32 bit dll, try it with x86 compiler
Shade
User
User
Posts: 10
Joined: Thu May 08, 2014 10:03 am

Re: Probleme avec libgmp-10.dll

Post by Shade »

salut je les compiler en 32 et 64 est toujours le même problème, il y aurais des dépendance avec libgmp-10.dll ou elle fonctionne seul ?
User avatar
idle
Always Here
Always Here
Posts: 5888
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Probleme avec libgmp-10.dll

Post by idle »

maybe the dll build failed.
Could you use wilberts bigint module?
viewtopic.php?p=628507#p628507
Shade
User
User
Posts: 10
Joined: Thu May 08, 2014 10:03 am

Re: Probleme avec libgmp-10.dll

Post by Shade »

sa dois venir de pb car je n'arrive pas a charger aucune *.DLL même une dll que je code avec pure basic
User avatar
idle
Always Here
Always Here
Posts: 5888
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Probleme avec libgmp-10.dll

Post by idle »

That's a bit odd. Are you sure your not trying to load a 32 bit dll in an x64 compiled program?
Have you tried to do a clean install of PB 6.12 LTS
Shade
User
User
Posts: 10
Joined: Thu May 08, 2014 10:03 am

Re: Probleme avec libgmp-10.dll

Post by Shade »

je viens de reinstaller Purebasic est sa refonctionne, je voulais savoir, serait il possible que quelqu'un me compile la derniere version de la librairie gmp en x64 en statique et dynamique ?

je vous remercie par avance
User avatar
idle
Always Here
Always Here
Posts: 5888
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Probleme avec libgmp-10.dll

Post by idle »

gmp might be a bit of effort to compile statically and even DLL might be a bit effort and it historically had issues on x64 builds for windows as in very slow.
Shade
User
User
Posts: 10
Joined: Thu May 08, 2014 10:03 am

Re: Probleme avec libgmp-10.dll

Post by Shade »

ah d'accord, connais tu un équivalent a gmp qui fonctionne bien ?
User avatar
idle
Always Here
Always Here
Posts: 5888
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Probleme avec libgmp-10.dll

Post by idle »

There is a fork of gmp for windows
https://github.com/wbhart/mpir

What functions do you need from gmp?
Isn't wilberts module above ok?
Shade
User
User
Posts: 10
Joined: Thu May 08, 2014 10:03 am

Re: Probleme avec libgmp-10.dll

Post by Shade »

un peut tous les module car ces pour faire du cryptage RSA 4096
User avatar
idle
Always Here
Always Here
Posts: 5888
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Probleme avec libgmp-10.dll

Post by idle »

Why not use the crypto lib from libretls or openssl.
Shade
User
User
Posts: 10
Joined: Thu May 08, 2014 10:03 am

Re: Probleme avec libgmp-10.dll

Post by Shade »

c'est l'option que j'ai choisi je fait avec openssl sa marche plutôt pas mal, je te remercie
User avatar
idle
Always Here
Always Here
Posts: 5888
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Probleme avec libgmp-10.dll

Post by idle »

That makes it easier.
Post Reply