#include absolute path syntax in c/c++
For some reason, I need to use the absolute path in #include for my system. Is using #include "D:\temp\temp_lib\temp.h" acceptable? I have tried these different usage and it all seems to work. #include "D:\temp\temp_lib\temp.h" #include "D:\\temp\\temp_lib\\temp.h" #include "D:/temp/temp_lib/temp.h" I just want to know which one should I use? I am using MSVC 2005. I'm wondering if all three will still work in Linux or other environment. I was expecting #1 to be an error during compilation, but I did not get any. Anyone has any idea why that is? Jim Balter Every implementation I'm aware of, and