<div>Sorry, I guess I should have been more clear.</div>
<div> </div>
<div>What I'm confused as to if I run gcc-xml on a .h file that has an include preproccesor definition that contains a fully specified path like:</div>
<div> </div>
<div>#include "C:\dev\dirA\dirB\dirC\header.h"</div>
<div> </div>
<div>then it works without using the -I flag at all.  </div>
<div> </div>
<div>However, if the path is not fully specified like this:</div>
<div> </div>
<div>#include "../../dirC/header.h"</div>
<div> </div>
<div>then I get the "could not find file header.h" error message.  Neither of these examples use the -I flag, but one works and the other doesn't.  I'm just curious as to the reason why.<br><br> </div>
<div><span class="gmail_quote">On 9/25/07, <b class="gmail_sendername">Brad King</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com
</a>> wrote:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Chris Friedemann wrote:<br>> I recently inherited a system that uses GCC to reflect values from c++<br>
> to xml as well as a couple of other things.  Part of my task was to<br>> remove the dependencies of VS 7.1 from the system, and the main culprit<br>> there was the version of gcc-xml we were using.  I got the latest 
<br>> version off of the CVS depot, but now I've hit another problem.<br>><br>> In each of the files that we are passing to gcc-xml, there is an<br>> #include definition that points to a file that contains common 
<br>> definitions etc.  It uses a relative path, such<br>> as "../../dirA/dirB/header.h".  After upgrading the gcc-xml version,<br>> I now get errors that it cannot find " header.h" as specified by the 
<br>> path.  If I make the path fully explicit then it works (ie<br>> C:\dirC\dirA\dirB\header.h), but it won't if it has the "../" in the<br>> path name.<br>><br>> Does anyone know of a solution or workaround for this issue? 
<br><br>GCC-XML is just like any other compiler in terms of the preprocessor (in<br>fact it simulates the preprocessors of other compilers).  Include<br>directories must be specified with -I flags.<br><br>-Brad<br></blockquote>
</div><br>