Page 1 of 1

Probleme avec libgmp-10.dll

Posted: Sun Oct 13, 2024 10:57 pm
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

Re: Probleme avec libgmp-10.dll

Posted: Sun Oct 13, 2024 11:59 pm
by idle
it's probably a 32 bit dll, try it with x86 compiler

Re: Probleme avec libgmp-10.dll

Posted: Mon Oct 14, 2024 4:10 pm
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 ?

Re: Probleme avec libgmp-10.dll

Posted: Mon Oct 14, 2024 8:33 pm
by idle
maybe the dll build failed.
Could you use wilberts bigint module?
viewtopic.php?p=628507#p628507

Re: Probleme avec libgmp-10.dll

Posted: Wed Oct 16, 2024 9:28 pm
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

Re: Probleme avec libgmp-10.dll

Posted: Wed Oct 16, 2024 9:50 pm
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

Re: Probleme avec libgmp-10.dll

Posted: Wed Oct 16, 2024 10:42 pm
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

Re: Probleme avec libgmp-10.dll

Posted: Wed Oct 16, 2024 11:49 pm
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.

Re: Probleme avec libgmp-10.dll

Posted: Thu Oct 17, 2024 5:21 am
by Shade
ah d'accord, connais tu un équivalent a gmp qui fonctionne bien ?

Re: Probleme avec libgmp-10.dll

Posted: Thu Oct 17, 2024 5:42 am
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?

Re: Probleme avec libgmp-10.dll

Posted: Thu Oct 17, 2024 4:54 pm
by Shade
un peut tous les module car ces pour faire du cryptage RSA 4096

Re: Probleme avec libgmp-10.dll

Posted: Thu Oct 17, 2024 7:55 pm
by idle
Why not use the crypto lib from libretls or openssl.

Re: Probleme avec libgmp-10.dll

Posted: Thu Oct 17, 2024 8:40 pm
by Shade
c'est l'option que j'ai choisi je fait avec openssl sa marche plutôt pas mal, je te remercie

Re: Probleme avec libgmp-10.dll

Posted: Thu Oct 17, 2024 9:21 pm
by idle
That makes it easier.