Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Specified include directories are not included in generated C-compile command line(Bug: Generated C-compile command line is missing all but first specified include directories)
Specified include directories are not included in generated C-compile command line [message #1853117] Sat, 18 June 2022 20:15
Dave Nadler is currently offline Dave NadlerFriend
Messages: 14
Registered: December 2015
Junior Member
Here's where I entered the include directories (using workspace paths
to the directories visible in the project):

http://www.nadler.com/backups/20220618_bug_EclipseInclude1.PNG

If I look at the compiler settings they are reflected correctly:
http://www.nadler.com/backups/20220618_bug_EclipseInclude2.PNG
But, the generated command line contains only the first of the listed include directories:
http://www.nadler.com/backups/20220618_bug_EclipseInclude3.PNG

Same thing when I try to build; here's the first build command:
arm-none-eabi-gcc "C:/git/AA/ATD57/src/Tests/BaroCalib/ADBaroCalib.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DSTM32F4XX -DSTM32F40XX -DUSE_STDPERIPH_DRIVER -DBA_BL_2_X -DBA_STANDALONE_APPLICATION -DBA_DEVICE_AD57 -DSTM32_UART1_DMA -DSTM32_UART3_DMA -DDEBUG -c -I"C:/git/AA/ATD57/CubeMX_Project/src" -Ofast -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"src/Tests/BaroCalib/ADBaroCalib.d" -MT"src/Tests/BaroCalib/ADBaroCalib.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "src/Tests/BaroCalib/ADBaroCalib.o"



Background
In a project using linked resources, it seems to be impossible to use the linked resource paths from the project in the C include directory entries. So I created workspace paths for the include directories (which in turn depend on the project linkage). All the files in the project are visible and accessible - just cannot get a correct command line for builds.

Any idea what's going on?
I've attached a ZIP with the .project and .cproject if that helps.

Thanks in advance for any help,
Best Regards, Dave

[Updated on: Mon, 11 July 2022 15:06]

Report message to a moderator

Previous Topic:Making a GUI
Next Topic:What's the recommended SAST tool
Goto Forum:
  


Current Time: Thu Apr 25 14:46:25 GMT 2024

Powered by FUDForum. Page generated in 0.03432 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top