what is the best practice to reference 3rd party C++ components (e.g. includes, libraries) using relative paths in Eclipse-CDT?
thanks,
Eclipse variables, such as ${workspace_loc} and ${project_loc} only work for things that are actually in the runtime Eclipse workspace. When you say you put them under the workspace in the filesystem, did you actually import the files into Eclipse (using new Project; or creating a linked folder in an existing project)?
If the files exist in the filesystem but not in Eclipse itself then Eclipse will only be able to access them with absolute paths.
BTW, CDT has variables of its own: ${WorkspaceDirPath} ${ProjDirPath} ${ProjName} which expand to the particular filesystem location.
I'm not sure about paths for CDT build settings (not at my computer) but can't you use the workspace variable? Something like: ${workspace_loc}/boost_1_39_9
Edit: OK, I did some searching and found some information on those variables, here. I think what you want is: ${project_loc:/boost_1_39_0} ?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With