简体   繁体   中英

System workbench for stm32: fatal error … no such file or directory

在此处输入图片说明

I'm getting this error the whole day though by Ctrl + Left Click the file is resolved + the resolver doesn't show it as unresolved. What is interesting too, is the generated compiler line:

Invoking: MCU GCC Compiler arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -DSTM32F30 -DSTM32F3 -DSTM32 -DSTM32F303VETx -DDEBUG -DUSE_STDPERIPH_DRIVER -DSTM32F303xE -I"D:\\Projects\\ac6_workspace\\emct_display_v2_stdperiph_lib" -I"D:/Projects/ac6_workspace/test_ac6/inc" -I"D:\\Projects\\ac6_workspace\\emct_display_v2_stdperiph_lib\\CMSIS\\core" -I"D:\\Projects\\ac6_workspace\\emct_display_v2_stdperiph_lib\\CMSIS\\device" -I"D:\\Projects\\ac6_workspace\\emct_display_v2_stdperiph_lib\\StdPeriph_Driver\\inc" -I"D:/Projects/ac6_workspace/test_ac6/Display_Driver/UnitTests" -I"D:/Projects/ac6_workspace/test_ac6/CANOpen" -I"D:/Projects/ac6_workspace/test_ac6/MCT_Driver/inc" -I"D:/Projects/ac6_workspace/test_ac6/MCT_Driver/PWM" -I"D:/Projects/ac6_workspace/test_ac6/STMTouch_Driver/inc" -I"D:/Projects/ac6_workspace/test_ac6/Display_Driver/Counter" -I"D:/Projects/ac6_workspace/test_ac6/Display_Driver/graphics" -O0 -g3 -pedantic -Wall -fmessage-length=0 -ffunction-sections -c -MMD -MP -MF"src/main.d" -M T"src/main.o" -o "src/main.o" "../src/main.c" In file included from ../src/main.c:28:0: D:/Projects/ac6_workspace/test_ac6/Display_Driver/graphics/oled_graphics.h:23:17: fatal error: gfx.h: No such file or directory

So it looks like Eclipse doesn't care at all what is in the include paths and just generating and running something. Crazy...

What I've tried is:

  1. Save All
  2. Clean + Build All
  3. Restart Eclipse (ac6)
  4. Restart the computer
  5. Reopen the project

I'm going to try next recreating the project again...

I solved the problem refering to the following article : https://mcuoneclipse.com/2012/04/16/symbol-defined-or-not-thats-the-question/

So it was very possible to solve to problem "remotely" if you know how...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM