User forums > General (but related to Code::Blocks)

Environment Variable

<< < (2/2)

puneet_m:
ok ..I have set an environment variable for my Project.
I am setting the variable at Project->Build Options->Custom Variables. Lets say I define a variable REP=C:\\Temp.
Now I am specifying the path of my files to be REP\\src\\base\\tinyxml.cpp
Then when I try to open this file by double click, "it says file not found".

dmoore:
unfortunately, custom variables aren't environment variables, they only exist within cb scope. you need to use the environment variables plugin. set a group of environment vars in settings -> environment -> "environment variables" then activate that set globally with set now or in project scope using project -> properties -> envvar options

puneet_m:
I am using the latest version of the code-block and I don't see any of these options in my code-block. So, do I need to install install any other plugin for environment variables?

dmoore:
I thought it was a contrib plugin - have you installed those?

Navigation

[0] Message Index

[*] Previous page

Go to full version