delorie.com/archives/browse.cgi | search |
On Fri, Jul 12, 2002 at 03:51:56PM -0400, Charles Wilson wrote: > > >Christopher Faylor wrote: > >> >>So, for now, I guess the only solution is to add the path to the >>Makefile along with a big flashing FIXME. > > >You'd still need a big flashing FIXME, but what about computing the path >from gcc -v? > >GCCVER=`(gcc -v 2>&1) | grep "^gcc version" | awk '{print $3}'` >GCCINC=-I/usr/include/c++/$(GCCVER) I was thinking about that but that would be second-guessing the include directory structure. Also, now that I think of it, it's not going to be /usr/include/c++/3.1.1 for a cross compiler. It will be something like /usr/i686-pc-cygwin/include/c++/3.1.1 . We could parse the include directories from something like: gcc -v -xc -E /dev/null but then I have to wonder what benefit -nosdinc++ is giving us. It was supposed to avoid cross-pollination between the source sandbox and the installed compiler but it seems to be causing more trouble than it is worth. Maybe the safest thing to do is to just drop -nostdinc++. cgf
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |