[ROOT] global pointer ??

From: Thomas Eberl (teberl@physik.tu-muenchen.de)
Date: Fri May 26 2000 - 17:18:22 MEST


Dear rooters,

thank you for the quick help concerning gVirtualX. But I have
encountered another problem.
I had declared a global pointer gDisplay to one of my own classes in
order to be able to use it when passing commands to the interpreter from
within my code, e.g.:
--------
TButton* but1= new TButton("Stop","",.91,.9,.99,.95);
      char *cmd1 = "gDisplay->stopDisplaying();";
      but1->SetMethod(cmd1);
--------
gDisplay was declared at the end of the display.h file (outside of the
class declaration of course) in the form:
EXTERN Display *gDisplay;

this compiled and worked nicely in version 222/10. Now (version 223/12),
however, it dosn't compile anymore with the error message:
display.h:58: syntax error before `*'

What goes wrong ??

regards

Thomas
-- 
Thomas Eberl                       Phone: (+49 89) 289 1 2429   
Physik-Department E12, Technische Universitaet Muenchen
James-Franck-Strasse *** D-85748 Garching b. Muenchen
Email: Thomas.Eberl@physik.tu-muenchen.de



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