Skip to main content
FLast.11
Associate II
January 11, 2017
Solved

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

  • January 11, 2017
  • 2 replies
  • 1130 views
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

This topic has been closed for replies.
Best answer by FLast.11
Posted on January 17, 2017 at 11:08

OK i found the solution -I xxxx for the CFLAGS

thanks~

2 replies

ST Technical Moderator
January 11, 2017
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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
FLast.11
FLast.11AuthorBest answer
Associate II
January 17, 2017
Posted on January 17, 2017 at 11:08

OK i found the solution -I xxxx for the CFLAGS

thanks~