We luv symlinks. Lets you make drive letters whenever you need 'em.
Of course, that won't let you escape the linux path syntax vs the windows path syntax.
The way I handle code that gets compiled on multiple platforms (notably Windows and Linux) is like this:
First line of my C (or C++) file:
#include "target_platform.h"
If the target platform is Linux, target_platform.h contains this:
Code:
#ifndef LINUX_TARGET
#define LINUX_TARGET
#endif
If Windows, this:
Code:
#ifndef MS_WINDOWS_TARGET
#define MS_WINDOWS_TARGET
#include "windows.h"
#endif
Then, where it is relevant in my code, there are statements like this:
Code:
#ifdef MS_WINDOWS_TARGET
xsize=GetSystemMetrics(SM_CXSCREEN);
#endif
#ifdef LINUX_TARGET
xsize=gdk_screen_get_width(screen);
#endif
This way, you wind up with code that will compile on both platforms without difficulty.