Skip to main content
HYoun
Associate II
August 25, 2020
Solved

STM32CubeIDE can't use gmp.h?

  • August 25, 2020
  • 3 replies
  • 4396 views

I wanna use big number in my board.

So, i try to use 'gmp.h'.

But when i use 'mpz_init' function, that have error message like this.

-> 'undefined reference to `__gmpz_init''

​

Should I make this function myself????

This topic has been closed for replies.
Best answer by EJOHA

Hi,

libgmp is not included in STM32CubeIDE toolchain. So if you need to gmp you will need to build the library yourself.

The toolchain included in STM32CubeIDE supports long long to support big integers (64-bits).

3 replies

EJOHA
EJOHABest answer
Associate
August 25, 2020

Hi,

libgmp is not included in STM32CubeIDE toolchain. So if you need to gmp you will need to build the library yourself.

The toolchain included in STM32CubeIDE supports long long to support big integers (64-bits).

HYoun
HYounAuthor
Associate II
August 25, 2020

Thank u for reply, EJOHA!

​

Actually, i wanna using 2^512 bits integer.

What's the best way to do you have any idea?:grinning_face:

EJOHA
Associate
August 25, 2020

No I have not been using such big integers. If you are application is into crypto maybe you can look into the STM32 cryptographic firmware library on ST web site.