Mixing DEFINEs with Literal Strings in C++
<p>I've created a #define which points to a particular directory. I would then like to use this definition in combination with a string literal:</p>

<pre><code>#define PATH_RESOURCES "/path/to/resources/"
std::ifstream datafile(PATH_RESOURCES + "textures.dat");
</code></pre>

<p>However, the compiler complains about adding char types using the + operator:</p>

<pre>error: invalid operands of types ‘const char [11]’ and ‘const char [13]’ to binary ‘operator+’</pre>

<p><br/>
So how can I combine a #define with a string literal? Or, is there a better way of doing this altogether? I imagine using a const variable would be an alternative, but this would mean having to pass around yet another parameter which I'd rather prefer to keep as a global definition.</p>
