<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Actually if the problem is that the compiler is not finding the .h file then Interior_files is not going to help you.
<div>Not sure what your directory structure looks like but the two things to consider are:
<div>1) The -I options given for your compile.</div>
<div> - need to point to where you generate the .h file</div>
<div>2) The form of the #include directive for the generated file</div>
<div> - If you are thinking the form #include "file.h" will help you are probably going to be disappointed.</div>
<div> - You need to use on of:</div>
<div> a) #include <file.h></div>
<div> b) #include <dir/gen/file.h></div>
<div> For case a) you need -Idir/gen for compiler options</div>
<div> For case b) you need -I. for compiler options</div>
<div><br>
</div>
<div>The interior_files function is unlikely to be useful for your needs but the graph_leaf_file variable may help cook avoid calculating useless dependencies, and is usually something like:</div>
<div>
<div>graph_leaf_file = [project_files];</div>
</div>
<div><br>
</div>
<div>Which tells cook not to consider looking for a recipe to generate any file on that list. It would reduce such lookups to just your generated file[s].</div>
<div><br>
</div>
<div>hope that helps.</div>
<div><br>
</div>
<div><br>
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<hr tabindex="-1">
<div id="divRpF174811" style="direction:ltr"><font face="Tahoma" size="2" color="#000000"><b>From:</b> cook-users-bounces+jpendergraft=sjm.com@lists.auug.org.au [cook-users-bounces+jpendergraft=sjm.com@lists.auug.org.au] on behalf of Ryan Thompson [ryan@flamtap.org]<br>
<b>Sent:</b> Friday, May 06, 2011 4:02 PM<br>
<b>To:</b> cook-users@auug.org.au<br>
<b>Subject:</b> [Cook] Interior_Files<br>
</font><br>
</div>
<div></div>
<div>Can you show me an example of the use of the Interior_Files argument to c_incl?
<br>
<br>
We have a .h file that is generated during the cook process from other files. <br>
<br>
Once the .h file is generated, it needs to be available for inclusion by .cpp files in the normal build process.
<br>
<br>
What I see happen is that the .h is created but then the .h is not found when cook is building one of the .cpp files that includes it.
<br>
<br>
I think Interior_Files may be what we need to use but I can't figure out the usage.
<br>
<br>
Thanks for any information,<br>
<br>
-Ryan Thompson<br>
</div>
</div>
</div>
</div>
</div>
This communication, including any attachments, may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are hereby notified that you are not authorized to read, print, retain
a copy of or disseminate any portion of this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please immediately notify the sender via return e-mail and delete it from your
system.
</body>
</html>