Re:questions

From: $B8eF#!!@5<#(
Date: Sun Nov 09 1997 - 00:54:00 MET


Dear Rooters,

 I've got following questions.

>1) int k(5);
>   float s(77.0);
>   ... is valid  (and recommended) C++ code for initialization,
>   but not accepted by ROOT;

 This form of initialization has not been implemented in CINT. It is not
 difficult to support this.
 Please use 'int k=5; float s=77.0;'  for the time being.

>2) {
>     #include <iostream.h>
>     ....
>   }
>   Ok, but I would have expected that .include tells me
>   which path for iostream.h I'm using (for example /usr/include),
>   but the answer is nil. (.help promises: "include: show includepathes")
>   More importantly: How do I tell CINT my personal
>   include pathes (for example /u/bob/root/include) ?

 Because iostream.h is in standard include directory in CINT, it does not 
show.
 .inlcude command only shows user defined include pathes. And it comes to 
the
 next question, how can you give include pathes.  There are 2 ways,
     1)    #pragma includepath "/u/bob/root/include" 
       Write pragma includepath statement in source file.
     2)    -I/u/bob/root/include
       Use -I command line option to CINT or maybe ROOT.
 Pathes given by these methods will show up in .include command.


P.S.
 I'm copying cint5.13.32 now.  Fons, please expose this version.
 And, sorry about sending multiple copies Rene. I'll use just one channel.

Masaharu Goto



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:22 MET