cancel
Showing results for 
Search instead for 
Did you mean: 

/Examples_Crypto/Src/example_rsa_encdec.c:224: undefined reference to `AccHw_RSA_PKCS1v15_Encrypt'

FLast.11
Associate III
Posted on January 11, 2017 at 05:32

hi i am new to linux,.

this is my first time to use command line makefile to compile.

i now encounter a problem that

 undefined reference to `AccHw_RSA_PKCS1v15_Encrypt' in the /Examples_Crypto/Src/example_rsa_encdec.c

but i have already added the library path and library for that

LFLAGS += -L$(TOPDIR)Middlewares/ST/STM32_Crypto_AccHw/Lib -lSTM32AccHwCryptoV3.1.0_F2_GCC -lSTM32AccHwCryptoV3.1.0_F2_GCC_ot -lm

main.elf: $(OBJS)

$(CC) $(LFLAGS) -o $@ $(OBJS)

@echo 'linked '$<'!\n'

I would appreicate if anyone can help.

Thanks

Jeff

1 ACCEPTED SOLUTION

Accepted Solutions
Posted on January 17, 2017 at 11:08

OK i found the solution -I xxxx for the CFLAGS

thanks~

View solution in original post

2 REPLIES 2
Imen.D
ST Employee
Posted on January 11, 2017 at 10:24

Dear

yu.jeff

‌,

Make sure that your project is configured properly and has the right include paths and source files from the same tree.

Perhaps there is something not setup correctly in your project settings ?

Best Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on January 17, 2017 at 11:08

OK i found the solution -I xxxx for the CFLAGS

thanks~