Error while building exported DAVE project in uVision

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hi,

I have exported/created a uVision project from a simple DAVE project.

When I build this into keil uvision, I m getting following error:

./Lib/System_LibcStubs.c(43): error: #5: cannot open source input file "sys/stat.h": No such file or directory
0 Likes
3 Replies
Not applicable
Hi Milan,

I think this file is not needed. You should be able to compile without it.

BR,
Zain
0 Likes
Not applicable
Hi Zain,

But it's showing error.

Can you suggest me a solution?

Regards,
Milan
0 Likes
Not applicable
Hi, Milan_3904,
From your DAVE 3 project 's Properties -> C/C++ Build- > Settings -> ARM-GCC C Compiler -> Preprocessor, there is a Defined symbols. It should contain UC_ID= xxxxxxx, DAVE_CE.
467.attach
These defined symbols need to input to Keil environment.
468.attach
Regarding the System_LibStubs.c file, you just need to delete it in the Keil environment.
Then, you try to recompile again.

Best regard
tys
0 Likes