Hi, has anybody experience how to use function calls related to linux drivers used from CINT/ROOT (like _IO(), _IOR() or _IOW()...). These functions are included by <linux/ioctl.h>. Other interesting header files are <sys/types.h>, <sys.stat.h> and <linux/module.h> and <linux/fs.h> all of them can not be used from CINT. How could I use them? May be I have to use +P or +p option (but where ?) as suggested by the message. Dirk below the behaviour of a ROOT session xray@pcssdd01 learn9908]$ root ******************************************* * * * W E L C O M E to R O O T * * * * Version 2.21/01 14 January 1999 * * * * You are welcome to visit our Web site * * http://root.cern.ch * * * ******************************************* FreeType Engine v1.1 used to render TrueType fonts. CINT/ROOT C/C++ Interpreter version 5.13.83, Dec 2 1998 Type ? for help. Commands must be C++ statements. Enclose multiple statements between { }. root [0] #include <sys/ioctl.h> Limitation: can not handle macro __const const Use +P or -p option FILE:/usr/include/sys/cdefs.h LINE:40 *** Interpreter error recovered *** root [1] #include <sys/types.h> Error: No symbol __BEGIN_DECLStypedef__u_charu_char in current scope FILE:/usr/ include/sys/types.h LINE:33 *** Interpreter error recovered *** root [2] #include <sys/stat.h> Error: Unexpected EOF G__fgetspace():2 FILE:/usr/include/sys/stat.h LINE:242 Advice: You may need to use +P or -p option *** Interpreter error recovered *** root [3] #include <linux/module.h> Limitation: can not handle macro MOD_INC_USE_COUNT do{}while(0) Use +P or -p opt ion FILE:/usr/include/linux/module.h LINE:105 *** Interpreter error recovered *** root [4] #include <linux/fs.h> Limitation: can not handle macro asmlinkage extern"C" Use +P or -p option FILE:/usr/include/linux/linkage.h LINE:6 *** Interpreter error recovered *** root [5] #include <linux/kernel.h> // this is o.k.
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:38 MET