Re: [ROOT] Rootcint problems: include files, excluding vars

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Thu Aug 22 2002 - 19:46:53 MEST


Hej Ole, 

On Thu, 22 Aug 2002 17:48:23 +0200
Ole Streicher <ole.streicher@gmx.de> wrote
concerning "Re: [ROOT] Rootcint problems: include files, excluding vars":
> Hello Rene!
> 
> Rene Brun writes:
>  > You can specify the includepath to rootcint like with the compiler
>  >  "-I/usr/local/log4j"  and not "-I /usr/local/log4j"
> 
> Doesn't work:
> 
> [athome] > rootcint -I/usr/local/include/ -f EventHeaderCint.cpp -c EventHeader.h
> Usage: rootcint [-v][-v0-4] [-f] [out.cxx] [-c] file1.h[+][-][!] file2.h[+][-][!]...[LinkDef.h]
> 

The `-I' flag _must_ come after the `-c' flag, like 

  [athome] > rootcint -f EventHeaderCint.cpp -c -I/usr/local/include \
	     EventHeader.h
 
as must all other preprocessor flags, like `-D', `-U' and so on.  It'd
be nice to have a more free format commandline (like not having to put
the linkdef file at the end, and `-f' being one of the first things,
as well as long options, like `--file=<dict>', 
`--link-definitions=<linkdef>', `--language=c++', and so on), which
would probably break alot of build scripts around, (IMHO) but so be
it. 

Venlig hilsen, 

 ____ |  Christian Holm Christensen 
  |_| |	 -------------------------------------------------------------
    | |	 Address: Sankt Hansgade 23, 1. th.  Phone:  (+45) 35 35 96 91
     _|	          DK-2200 Copenhagen N       Cell:   (+45) 24 61 85 91
    _|	          Denmark                    Office: (+45) 353  25 305
 ____|	 Email:   cholm@nbi.dk               Web:    www.nbi.dk/~cholm
 | |



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:05 MET