order of switches

Igor Markov imarkov@cs.ucla.edu
Thu Aug 12 12:11:00 GMT 1999


  It appears that the order of switches that I give to g++
  is critical to how it works. It may silently ignore -I or -l
  if they aren't in the correct place. That seems weird and
  causes problems, e.g.,

[imarkov@localhost Ctainers1.8]$ make-gnu
g++ -g -DABKDEBUG -fPIC -fno-for-scope -Wall -pedantic -pipe -I
-I/home/userg/code/OUR/symlinks/ABKCommon -I. -c bitBoard.cxx
In file included from bitBoard.cxx:19:
bitBoard.h:27: abkassert.h: No such file or directory
bitBoard.h:28: abkio.h: No such file or directory
^C
make: *** wait: No child processes.  Stop.
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes.  Stop.

[imarkov@localhost Ctainers1.8]$ g++ -I/home/userg/code/OUR/symlinks/ABKCommon
-I. -c rbtree.cxx
[imarkov@localhost Ctainers1.8]$  

  I just grep'ed man g++ for "order" and it there were no matches.
 
  Any pointers/comments?

  thanks,
								Igor
-- 
  Igor Markov  office: (310) 206-0179   
  http://vlsicad.cs.ucla.edu/~imarkov


More information about the Gcc mailing list