P
pete
I've read the FAQ (although if this /is/ a FAQ, please point me at it)
and I've read quite a few promising posts in this group. But I am not
able to do what I want. Which is:
I have some very long pathnames to prepend to #included file names.
These long pathnames might change every week or two, so of course I'd
like to #define in just one place.
I've tried many ## and # things, but none seem to work for me when I
use them in #includes. I want to do this:
#define PATH Str(/longish/path/name/)
#include PATH "snmp.h"
which I am asking the preprocessor to resolve to:
#include "/longish/path/name/snmp.h"
As I say, I've tried a few things and many of them work; butin the
#include case, the preprocessor resolves my #include args to the empty
string.
How can I accomplish string cat as I wish?
Thanks!
-- Pete
and I've read quite a few promising posts in this group. But I am not
able to do what I want. Which is:
I have some very long pathnames to prepend to #included file names.
These long pathnames might change every week or two, so of course I'd
like to #define in just one place.
I've tried many ## and # things, but none seem to work for me when I
use them in #includes. I want to do this:
#define PATH Str(/longish/path/name/)
#include PATH "snmp.h"
which I am asking the preprocessor to resolve to:
#include "/longish/path/name/snmp.h"
As I say, I've tried a few things and many of them work; butin the
#include case, the preprocessor resolves my #include args to the empty
string.
How can I accomplish string cat as I wish?
Thanks!
-- Pete