<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Sep 9, 2007, at 07:53, Geoffrey S. Knauth wrote:</div><blockquote type="cite"><div>On Sep 9, 2007, at 07:40, Matthew Flatt wrote:</div><blockquote type="cite"><div><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">I see, though, that if you were building for CGC, then you'd have to</span></div></blockquote><blockquote type="cite"><div>use ++ccf instead of ++cppf, because there's no separate pre-processing</div><div>step in CGC compilation. To fix that inconsistency, I think all the</div><div>++cppf flags should be used for ++ccf, too, which would be analogous to</div><div>the way that CPPFLAGS and CFLAGS usually work (I think).</div> </blockquote><div><br></div><div>Thank you, Matthew! I'm going to do a little test to see if, with gcc, the -I flags are passed to both the preprocessor and the compiler.</div></blockquote><br></div><div>1. My immediate problem is solved (thank you!).</div><div><br class="webkit-block-placeholder"></div><div>2. Just noodling around... I can't tell if gcc uses cpp any more. I only see a call to cc1 below.</div><div><br class="webkit-block-placeholder"></div><div><div><font class="Apple-style-span" face="Courier">[gknauth@merlin test]$ cat gcc-test.c</font></div><div><font class="Apple-style-span" face="Courier">#include <stdio.h></font></div><div><font class="Apple-style-span" face="Courier">#include <hidden-message.h></font></div><div><font class="Apple-style-span" face="Courier">int main(int argc, char **argv) {</font></div><div><font class="Apple-style-span" face="Courier"> printf(MESSAGE);</font></div><div><font class="Apple-style-span" face="Courier">}</font></div><div><font class="Apple-style-span" face="Courier">[gknauth@merlin test]$ cat obscure/hidden-message.h </font></div><div><font class="Apple-style-span" face="Courier">#define MESSAGE "\"I still haven't found what I'm looking for.\" (U2)"</font></div><div><font class="Apple-style-span" face="Courier">[gknauth@merlin test]$ gcc -v -I `pwd`/obscure gcc-test.c</font></div><div><font class="Apple-style-span" face="Courier">Using built-in specs.</font></div><div><font class="Apple-style-span" face="Courier">Target: i686-apple-darwin8</font></div><div><font class="Apple-style-span" face="Courier">Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic --program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8</font></div><div><font class="Apple-style-span" face="Courier">Thread model: posix</font></div><div><font class="Apple-style-span" face="Courier">gcc version 4.0.1 (Apple Computer, Inc. build 5367)</font></div><div><font class="Apple-style-span" face="Courier"> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/cc1 -quiet -v -I /Users/gknauth/test/plt/t-mysql/test/obscure -D__DYNAMIC__ gcc-test.c -fPIC -quiet -dumpbase gcc-test.c -march=nocona -auxbase gcc-test -version -o /var/tmp//ccf0Qhgn.s</font></div><div><font class="Apple-style-span" face="Courier">ignoring nonexistent directory "/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../../i686-apple-darwin8/include"</font></div><div><font class="Apple-style-span" face="Courier">#include "..." search starts here:</font></div><div><font class="Apple-style-span" face="Courier">#include <...> search starts here:</font></div><div><font class="Apple-style-span" face="Courier"> /Users/gknauth/test/plt/t-mysql/test/obscure</font></div><div><font class="Apple-style-span" face="Courier"> /usr/local/include</font></div><div><font class="Apple-style-span" face="Courier"> /usr/lib/gcc/i686-apple-darwin8/4.0.1/include</font></div><div><font class="Apple-style-span" face="Courier"> /usr/include</font></div><div><font class="Apple-style-span" face="Courier"> /System/Library/Frameworks</font></div><div><font class="Apple-style-span" face="Courier"> /Library/Frameworks</font></div><div><font class="Apple-style-span" face="Courier">End of search list.</font></div><div><font class="Apple-style-span" face="Courier">GNU C version 4.0.1 (Apple Computer, Inc. build 5367) (i686-apple-darwin8)</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="Courier">        </font></span><font class="Apple-style-span" face="Courier">compiled by GNU C version 4.0.1 (Apple Computer, Inc. build 5367).</font></div><div><font class="Apple-style-span" face="Courier">GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072</font></div><div><font class="Apple-style-span" face="Courier">Compiler executable checksum: 6194c5c0186b5ef61debe245948e5508</font></div><div><font class="Apple-style-span" face="Courier"> as -arch i386 -force_cpusubtype_ALL -o /var/tmp//ccCVjNXt.o /var/tmp//ccf0Qhgn.s</font></div><div><font class="Apple-style-span" face="Courier"> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/collect2 -dynamic -arch i386 -weak_reference_mismatches non-weak -o a.out -lcrt1.o -L/usr/lib/gcc/i686-apple-darwin8/4.0.1 -L/usr/lib/gcc/i686-apple-darwin8/4.0.1 -L/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../.. /var/tmp//ccCVjNXt.o -lgcc -lSystem</font></div><font class="Apple-style-span" face="Courier"><br class="webkit-block-placeholder"></font></div></body></html>