Topic: undefined reference to 'sp_init'

i am sorry to bother you,I tried my best but couldn't solve it. I have already configured,i have include <wolfssl/wolfcrypt/sp_int.h>,but it told me undefined reference to 'sp_init',one solution maybe work according tohttps://github.com/wolfSSL/wolfssl/pull/5328,but i don't quite understand .i could not include <wolfssl/wolfcrypt/sp.h>,
I don't know if it's normal.thanks for answering me

Share

Re: undefined reference to 'sp_init'

Hi wangzihao,

Thanks for joining the wolfSSL Forums. Could you share the "./config" command you used?

Are you trying to use the math library directly in your application? If so you'll need to define "WOLFSSL_PUBLIC_MP" in the configuration. You should use the "mp_*" API instead of the direct "sp_*" functions.

Let us know if there are still questions.

Thanks,
Eric - wolfSSL Support

Re: undefined reference to 'sp_init'

i just used mp_int

Share

Re: undefined reference to 'sp_init'

i just used mp_int

Share

Re: undefined reference to 'sp_init'

It seems like we have the same conversation happening on two forums:
https://stackoverflow.com/questions/755 … to-sp-init

Let's just keep the conversation going here.

Thanks,
Eric - wolfSSL Support