You can't win. I hardly ever use the beggars but when I do everything goes t*ts up.
Basically I've got a set of headers I want to use across several DLL's (so several projects) so I've got this directory structure:
So ignore all of them except SharedLib. Basically it includes several headers and to save me typing "..\SharedLib\Singleton.h" (for example) I'm trying to get a macro like this to work:Code:ROOT ------ NothDebug | - NothKernel | - SharedLib | - Runtime
Of course I get "newline in constant" so I replace it with "...\\SharedLib\\" which doesn't work because now it can't find the header "..\\SharedLib\\Singleton.h".Code:#define SHARED(h) "...\SharedLib\" ## h
I use it like this BTW:
After trying to put #include in the macro which didn't work.Code:#include SHARED(Singleton.h)
Help! Save my fingers!