1

In my existing compile command line I use this switch to define a macro from the command line:

 -DSsvid_UsrName=\"$USER\"

Using Cevelop 1.4, I added:

Project > Properties 
C/C++ Build > Environment
Environment variables to set > Add...

Name: Ssvid_UsrName
Value: ${USER}

After this I am getting the same error message. How do I verify that the Ssvid_UsrName macro has been set?

enter image description here

CW Holeman II
  • 4,661
  • 7
  • 41
  • 72

1 Answers1

2

The environment contains environment variables like the PATH variables, etc.

Symbols for the compilation can be specified in the project properties: C/C++ General -> Paths and Symbols -> Symbols (Tab) -> Add...

enter image description here

Now you can observe the correct behavior in the output of the compile command in the console (I replaced my username with User in the picture):

enter image description here

I hope this helps!

Kredon
  • 31
  • 4