For some reason, I need to use the absolute path in #include
for my system.
Is using #include "D:empemp_libemp.h"
acceptable?
I have tried these different usage and it all seems to work.
#include "D:empemp_libemp.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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…