Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing include file path after add it #876

Open
SteMMo33 opened this issue Jul 30, 2024 · 0 comments
Open

Missing include file path after add it #876

SteMMo33 opened this issue Jul 30, 2024 · 0 comments

Comments

@SteMMo33
Copy link

SteMMo33 commented Jul 30, 2024

Arm cross compiler project with GCC compiler.
Generated a Arm Cross Project.
Inserted a new include path on 'GNUArm Cross C Compiler' - 'Include paths'
If I check the 'All options' content on the parent window I see the selected path in the generated commnd line:
-I"C:\Progetti\dbTechnologies\testSTM32\testSTM32_CMSIS_RTOS_FreeRTOS\src\CMSIS-FreeRTOS\Source\include" -std=gnu11

Right click on project + 'Build Project'
The used command line does not contain the selected include path, but a previous not-valid path:

Building file: ../src/CMSIS-FreeRTOS/Source/portable/Gcc/ARM_CA7/port.c
Invoking: GNU Arm Cross C Compiler
arm-none-eabi-gcc -mcpu=cortex-a7 -mthumb -O2 -g **-I"C:\Progetti\dbTechnologies\testSTM32\testSTM32_CMSIS_RTOS2\Drivers\CMSIS\RTOS2\Include"** -std=gnu11 -MMD -MP -MF"src/CMSIS-FreeRTOS/Source/portable/Gcc/ARM_CA7/port.d" -MT"src/CMSIS-FreeRTOS/Source/portable/Gcc/ARM_CA7/port.o" -c -o "src/CMSIS-FreeRTOS/Source/portable/Gcc/ARM_CA7/port.o" "../src/CMSIS-FreeRTOS/Source/portable/Gcc/ARM_CA7/port.c"
../src/CMSIS-FreeRTOS/Source/portable/Gcc/ARM_CA7/port.c:34:10: fatal error: FreeRTOS.h: No such file or directory

If i go back to the settings window I see the wanted correct path!
How it is possible?
Any idea?

After 'Clear project' command nothing change.

-- EDIT

If I add the path as Include System Path (adding to the same path in the Include Paths -I), I see the new path under -isystem PLUS the uncorrent path with -I option:

Building file: ../src/CMSIS-FreeRTOS/Source/portable/Gcc/ARM_CA7/port.c
Invoking: GNU Arm Cross C Compiler
arm-none-eabi-gcc -mcpu=cortex-a7 -mthumb -O2 -g -I"C:\Progetti\dbTechnologies\testSTM32\testSTM32_CMSIS_RTOS2\Drivers\CMSIS\RTOS2\Include" -isystem"C:\Progetti\dbTechnologies\testSTM32\testSTM32_CMSIS_RTOS_FreeRTOS\src\CMSIS-FreeRTOS\Source\include" -std=gnu11 -MMD -MP -MF"src/CMSIS-FreeRTOS/Source/portable/Gcc/ARM_CA7/port.d" -MT"src/CMSIS-FreeRTOS/Source/portable/Gcc/ARM_CA7/port.o" -c -o "src/CMSIS-FreeRTOS/Source/portable/Gcc/ARM_CA7/port.o" "../src/CMSIS-FreeRTOS/Source/portable/Gcc/ARM_CA7/port.c"

-- EDIT

Eclipse IDE for Embedded C/C++ Developers (includes Incubating components)

Version: 2024-06 (4.32.0)
Build id: 20240606-1231

--

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant