Environment variable to boost root that will work in both Windows and Linux in Eclipse

I was attempting to make a secondary set of var paths for Linux but as it turns out, / auto-resolves to C:/ in Eclipse. Is this a safe intended use or a happy accident?

BOOST_ROOT =            /boost_1_55_0
GCC C++ include path:   ${BOOST_ROOT}
MinGW C++ library path: ${BOOST_ROOT}\stage\lib

It seems to work and does compile fine (only tested Win) but seems like it may not be an intentional feature.

The old BOOST_ROOT = C:/boost_1_55_0 is also shown in the picture.

Answers


I have found a solution to this by moving boost into the workspace directory and using the ${workspace_loc} Eclipse variable to reference it.


Need Your Help

SendFailedException: bad password

java email smtp gmail javax.mail

This question has evolved to a more definite question from a rather vague one. The code comes from an example by mkyong. At least according to Google, it's a bad password, and I've followed their...

Unicode tooltips not showing up

c++ windows unicode tooltip

I am trying to display unicode tooltips in my application window, however they do not seem to display. Non-unicode text shows up correctly but as soon as I try doing unicode no tooltip shows up. ...