Error C4447E (ARM- KEIL) adding libcrypto.a file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-04 10:52 PM
Hi, I am working on STM32 based IC using KEIL IDE.
I have added Middleware Crypto lib to my project...file name is libcrytpo.a
When I add it into my project on compiling I get following error.
libcrypto.a: Error: C4447E: option '-E' and input file '..\Middlewares\ST\cryptolib\libcrypto.a' type conflict
libcrypto.a: error: A1905U: Pre-processor step failed for '..\Middlewares\ST\cryptolib\libcrypto.a'
How to resolve this issue? I am unable to understand the problem and cause of the error properly. please help
- Labels:
-
Keil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-04 10:57 PM
@Community member​ @Winfred LU​ @Community member​
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-06 7:08 AM
> option '-E' and input file '..\Middlewares\ST\cryptolib\libcrypto.a' type conflict
Do not use option -E.
For more help with Keil's compiler and IDE please visit the Keil's forum here:
community.arm.com/developer/tools-software/tools/f/keil-forum
Good luck,
-- Pavel A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-02-14 5:36 PM
Hi, I have encountered the same problem. In my case the solution was as follows: when adding files with the extension .a to the Keil project, you must specify in their properties that this is a "Library file", not an "Assembly language file" (default).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-02 4:12 AM
hi,I don't understand what you say that "you must specify in their properties that this is a "Library file", not an "Assembly language file" (default).",how to do that, could you please tell me?,thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-02 4:16 AM
hi,do you resolve this problem? I have encountered those two errors too.if you have resolved it, please help me,thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-02 4:37 AM
Hello @yjun.1​ ,
@AKryl.1​ is right. Keil is trying to preprocess the file (-E: run preprocessor) meaning that it considers it a source file. You can change how Keil interprets the file by right clicking on the file in the Project panel, clicking on Options for Fil 'filename' in the contexual menu, and changing the file type by selecting library in the File Type combo box.
Best regards,
@SBEN .2​
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-02 9:26 PM
Thanks for your reply, I'll try it​.:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-04 5:55 PM
You are right! I changed the File Type,now it works! no error! I worked this problem for 2 days in last week. thanks for your help!
