<div>Hi,</div><div><br></div><div> I'm trying to compile some code using Cabal. One of the files has a CPP directive</div><div><br></div><div>#include "undefined.h"</div><div><br></div><div>The file undefined.h is in the same directory as the file with the directive.</div>
<div>If I use the full path name, cabal can compile it. However, if I use the relative path, </div><div>it complains about not being able to find the file. I tried adding it to </div><div>extra-source-files, but that didn't help. I see that Hackage packages like Agda use</div>
<div>this trick, so I know it's possible. How can I get these paths worked out correctly?</div><div>There isn't much comment in the Cabal docs.</div><div><br></div><div>Thanks,</div><div><br></div><div>Sean</div>