<div>Some of the tests have #includes which can be problematic across platforms.</div>
<div> </div>
<div>Part of the difficulty is in how the default include paths are done now.</div>
<div> </div>
<div>Setting C_INCLUDE_PATH, CPLUS_INCLUDE_PATH, OBJCPLUS_INCLUDE_PATH, and OBJC_INCLUDE_PATH to the host compiler's includes directory allows the compiler to find the include files, except that in running the tests with the Python script, the environment variable doesn't seem to be getting through.  It did seem to work while running the compiter under the debugger or directly from the command line, however.</div>

<div> </div>
<div>The InitHeaderSearch.cpp file sets up a hard-coded path for VS9 on a g: drive, which of course, is not likely to match most users.  Perhaps also adding:</div>
<div> </div>
<div>C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\INCLUDE<br>C:\\Program Files\\Microsoft Visual Studio 8\\VC\\include</div>
<div> </div>
<div>might match most users, since these are the default installation paths.  And while we're at it, throw in Cywin's path:</div>
<div> </div>
<div>C:\\cygwin\\usr\\include</div>
<div> </div>
<div>I can give you a patch for this, if you want.  After adding this, the failed test count went from 230 to 204.</div>
<div> </div>
<div>Or, it wouldn't be too hard to use the environment variables VS80COMNTOOLS and VS90COMNTOOLS to look for them, or perhaps something from the registry.  Shall I try this and submit a patch for this instead?</div>

<div> </div>
<div>However, a key issue I want to get to in this posting is that the compiler might not be ready for everything in the host compiler's includes, specifically both Visual Studio and Cygwin in this case, as unexpected messages arising from compiling these files are making some tests fail.</div>

<div> </div>
<div>My question is, do we really want to #include standard headers in the tests?</div>
<div> </div>
<div>Or, if we need certain definitions from them, should we perhaps create a set of canonical headers with just the definitions needed for the tests and include those instead, changing the #include's in the tests to be relative, to make it obvious?</div>

<div><br clear="all">Or, what other solutions might there be?  Because of licensing, I'm guessing you couldn't just check-in some GNU headers from a platform deemed the reference standard.</div>
<div></div>
<div> </div>
<div>-John</div>
<div><br>-- <br>John Thompson<br><a href="mailto:John.Thompson.JTSoftware@gmail.com" target="_blank">John.Thompson.JTSoftware@gmail.com</a><br><br></div>