Saturday, November 27, 2010

Include Paths

When using Windows, the paths in your #includes should use "/" and not "\", because it is guarenteed to work by the C++ standard.

Using "\" will only work in Windows. What sometimes happens when developing in Windows, is that developers use "\" in the include statements and also use mixed case for the header file names in the include statement. When it is decided to port to Linux or other Unix variant, there are a lot of compile errors.

No comments:

Post a Comment