[ROOT] u_short in CINT

From: Christian Haeberli (christian.haeberli@cern.ch)
Date: Wed May 24 2000 - 10:22:43 MEST


Hi ROOTers

u_short is a very agreable variable type. Perfect for handling ADC
values or wired chamber coordinates of 2 bytes. But I cannot use
u_shorts in CINT.

I can compile an execute this C++ program:
---
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>

main ()

{
  u_short var=4;

  printf("Var: %x\n", var);

}
--- 
I cannot execute this ROOT script:
----
{
gROOT->Reset();

#include <sys/types.h>
#include <sys/stat.h>

u_short test=4;
printf("%x\n",test);
}

Why? Is it an including/linking problem or a different problem (compare
my last message about the open-command)?

Christian
___________________________________________________________________
Christian Haeberli                       christian.haeberli@cern.ch
University of Bern
Laboratory for High Energy Physics       Phone : ++ 41 31 631 4069
Sidlerstr. 5                             Mobile: ++ 41 76 316 6159
CH-3012 BERN                             Fax   : ++ 41 31 631 4487



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:26 MET