How to add a variable to the Eclipse startup configuration

I am using Eclipse Keplero in C ++. I have a project that depends on other shared libraries.

To debug the application, I have to add manully all the dependency libraries, but this is very boring. So I thought I could update the PATH enviorment variable from "Enviorment" to "Run Configuration". I added the following variable: PATH:${PATH};${workspace_loc}\library\lib\x64;${BOOST_X64_NATIVE}

BOOST_X64_NATIVE is an os enviorment variable (windows 7). But I have the following message: Reference to undefined variable PATH .

Well, how can I properly configure the enviorment variables on eclipse so that I do not copy all the dependencies every time.

+6
source share
1 answer

Just set the PATH environment variable: In the "Launch Settings" menu → "Environment" adjust the PATH variable. Note that if you want to use the existing enviorment variable, you must use ${env_var:NAME} , where NAME is the name of the variable. Therefore, to add a PATH update for program deployment, you need to add the PATH variable ${env_var:LIBRARY_PATH};${env_var:BOOST_X64_NATIVE};${env_var:PATH}

+11
source

Source: https://habr.com/ru/post/948712/


All Articles