The problem is that I need to pass include paths to the C++ compiler. I can define them for each buffer, like:
:let b:COMPILER_OPTIONS='-ggdb -I"E:\boost_1_42_0\boost\"'
But how do I expand b:COMPILER_OPTIONS on the command line ?
:!g++ program.cpp eval('b:COMPILER_OPTIONS')
doesn't work.
Or, if this isn't possible, what other ways are there for doing this ?