Re: Can't get rootcint -I option to work
Pasha Murat (murat@cdfsga.fnal.gov)
Sat, 16 Jan 1999 23:06:14 -0600 (CST)
Joanne Bogart writes:
> I'm trying to make a dictionary for several classes. Some of them have
> includes which are in a separate directory. I have already successfully
> made a dictionary for the case where all relevant files are in the
> same directory with a rule in my makefile of the form
>
> ../src/EventCint.cxx:$(DIRINCFILES)
> @$(ROOTSYS)/bin/rootcint -f $(SRCDIR)$@ -c $+
>
> where DIRINCFILES is a symbol set to the appropriate list of .h files
> and SRCDIR is just ../src/
>
> (By the way, I don't know what the -f does. It's only in the rule because
> it also appears in the sample makefile in the Root web. The description
> of this option in the help file -- "set break file" -- is too terse for me.)
>
> The rule for the new dictionary (actually, one of several permutations I
> tried) is
>
> ../src/FastMCCint.cxx:$(DIRINCFILES)
> @echo "Generating dictionary ..."
> @$(ROOTSYS)/bin/rootcint -f -I $(EVENTIDIR) $(SRCDIR)/FastMCCint.cxx -c $+
>
> EVENTIDIR is the same include path successfully used when compiling
> the classes.
>
> I get the following output:
>
> Generating dictionary ...
> Option -c must come directly after the output file
> gmake: *** [../src/FastMCCint.cxx] Error 1
Hi Joanne, the right syntax is:
rootcint -f $(SRCDIR)/FastMCCint.cxx -c -I$(EVENTIDIR) $(DIRINCFILES)
-pasha