Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Build system bug(Code shown on-screen is not what is compiled)
Build system bug [message #1852697] Wed, 01 June 2022 11:10
Andrew Coad is currently offline Andrew CoadFriend
Messages: 4
Registered: January 2022
Junior Member

Eclipse CDT C/C++ version: 2021-09 (4.21.0)
Build id: 20210910-1417
Mac OS X 11.4 (BigSur)

main.c is shown here:
The breakpoint on line 434 that had no effect. Lines 434 and 435, while showing as active code on-screen, did not actually get compiled. Eclipse moved the breakpoint to the next valid line of code on line 441 as highlighted.

The PP symbols at the project level are:
PP symbol BOARD_AMP_MODULE is active and this is reflected on-screen.

PP symbols at the main.c file level are:
PP symbol BOARD_AMP_MODULE is "commented out" (or completely removed) but Eclipse is interpreting that as being not defined instead of referring to the project-level PP symbols.

The index has been rebuilt (multiple times) but Eclipse is still looking at the file for the BOARD_AMP_MODULE symbol, doesn't find it and doesn't compile the bracketed code segment. Meanwhile the parser that greys code segments out is looking at the project level PP symbols.

How to reproduce:
For a symbol defined at the project-level, also define it on a selected file. Rebuild the index. Comment out, or remove the symbols completely at the file level. Eclipse project build still looks at the file for the designated symbol.
  • Attachment: main.png
    (Size: 194.96KB, Downloaded 138 times)
  • Attachment: project.png
    (Size: 66.28KB, Downloaded 137 times)
  • Attachment: main file.png
    (Size: 56.58KB, Downloaded 148 times)
Previous Topic:make: *** No rule to make target mix of / and \
Next Topic:enbedcdt build
Goto Forum:

Current Time: Sat Feb 04 02:04:23 GMT 2023

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

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

Back to the top