[Coin-discuss] COIN on a Mac

Laszlo Ladanyi ladanyi at us.ibm.com
Mon Jan 6 12:53:43 EST 2003


-I- is a special directive to the compiler (at least to gcc):

       -I-    Any  directories  you specify with `-I' options before the `-I-'
              option are searched only for the case of `#include "file"'; they
              are not searched for `#include <file>'.

              If  additional directories are specified with `-I' options after
              the `-I-', these directories are searched for all `#include' di-
              rectives.   (Ordinarily all `-I' directories are used this way.)

              In addition, the `-I-' option inhibits the use  of  the  current
              directory  (where the current input file came from) as the first
              search directory for `#include "file"'.   There  is  no  way  to
              override  this  effect  of  `-I-'.   With  `-I.' you can specify
              searching the directory which was current when the compiler  was
              invoked.   That is not exactly the same as what the preprocessor
              does by default, but it is often satisfactory.

              `-I-' does not inhibit the use of the standard  system  directo-
              ries for header files.  Thus, `-I-' and `-nostdinc' are indepen-
              dent.

And the reason why you didn't get Makefile.Darwin is that I committed the
changes, but forgot to 'cvs add' that file first... :-(. So just do an update
again and it should work.

--Laci

On Mon, 6 Jan 2003, John Fuller wrote:

> Is that -Iinclude at the top correct syntax?  ex: instead of -I/include or -I./include?
> 
> 	-----Original Message----- 
> 	From: Harder, Robert, Capt, DPX-AFPOA [mailto:Robert.Harder at pentagon.af.mil] 
> 	Sent: Mon 1/6/2003 11:34 AM 
> 	To: 'coin-discuss at www-124.ibm.com' 
> 	Cc: 
> 	Subject: RE: [Coin-discuss] COIN on a Mac
> 	
> 	
> 
> 	Oh boy...something's wrong for me.
> 	
> 	I touched Makefile.Darwin since cvs update didn't give me anything there. I
> 	went into Vol and modified Makefile to make LibType STATIC. After typing
> 	make I get this:
> 	
> 	====================================
> 	
> 	make -f /Users/rob/Projects/COIN/Makefiles/Makefile.lib install
> 	
> 	Creating dependency VolVolume.d
> 	/bin/sh: -I-: command not found
> 	touch Junk/VolVolume.o
> 	
> 	Creating library libVol-O
> 	make[1]: Darwin-O/libVol-O: Command not found
> 	make[1]: *** [Darwin-O/libVol-O] Error 127
> 	make: *** [install] Error 2
> 	
> 	====================================
> 	
> 	Does this look familiar to anybody?
> 	
> 	-Rob
> 	
> 	
> 	
> 	+-----------------------------------------+
> 	|  Robert Harder, Capt, USAF, DPX-AFPOAe  |
> 	|  Chief, Enlisted Models Development     |
> 	|  voice: (703) 604-1341   DSN: 664-1341  |
> 	|  fax:   (703) 604-1657   DSN: 665-1657  |
> 	|  robert.harder at pentagon.af.mil          |
> 	+-----------------------------------------+
> 	
> 	
> 	
> 	-----Original Message-----
> 	From: Laszlo Ladanyi [mailto:ladanyi at us.ibm.com]
> 	Sent: Monday, January 06, 2003 11:14 AM
> 	To: coin-discuss at oss.software.ibm.com
> 	Subject: Re: [Coin-discuss] COIN on a Mac
> 	
> 	
> 	Scott's changes have been incorporated into the repository and the tarballs
> 	have been updated as well. Could the lurking Mac users check it out and
> 	complain if it doesn't work?
> 	
> 	Thanks again, Scott!
> 	
> 	--Laci
> 	
> 	On Wed, 1 Jan 2003 ScottWelz at aol.com wrote:
> 	
> 	> Laci,
> 	>
> 	> Thanks for the response.  Attached are the couple of additional files
> 	> needed for the Darwin port.
> 	>
> 	> Regards, Scott
> 	>
> 	
> 	_______________________________________________
> 	Coin-discuss mailing list
> 	Coin-discuss at www-124.ibm.com
> 	http://www-124.ibm.com/developerworks/oss/mailman/listinfo/coin-discuss
> 	_______________________________________________
> 	Coin-discuss mailing list
> 	Coin-discuss at www-124.ibm.com
> 	http://www-124.ibm.com/developerworks/oss/mailman/listinfo/coin-discuss
> 	
> 
> 




More information about the Coin-discuss mailing list