0

Is there a way to define multiple symbols in one go in Eclipse? I have a list of preprocessor symbols that need to be defined and adding one by one in the preprocessor settings seems to be too tedious. Is there a way to add the list of symbols in one batch?

Tried adding new defined symbol but this only allows to add 1 symbol at a time.

howlger
  • 31,050
  • 11
  • 59
  • 99
jgrill
  • 1
  • I would guess they are stored in the `.cproject` file, so you might edit this XML file directly. – howlger Feb 27 '23 at 11:12
  • Can you add an option to include an extra header for each file? Like `-imacro ` ? Then add your macros in that file. – Gerhardh Feb 27 '23 at 11:16
  • 1
    I would use an extra header file with those global stuff and include in all C files. It helps when you move to another toolchain/IDE – 0___________ Feb 27 '23 at 11:17
  • I know they are stored in the .cproject, I was wondering if there is a software to manage this? @howlger – jgrill Feb 27 '23 at 12:14

1 Answers1

0

The easiest way of achieving this is to copy all your defined symbols and pasting them in the defined symbols list, instead of using the "add" button.

You can ctrl+c and ctrl+v in the defined symbols list.

Settings_Preprocessor

jgrill
  • 1