hi thomas,
try renaming it to R__EXTERN.
cheers,
patrick.
On Fri, 26 May 2000, Thomas Eberl wrote:
> 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
>
-------------------------------------------o-------------------------------
Patrick Decowski |
24-507 | Home: (617)625-9352
Massachusetts Institute of Technology | Cell: (617)308-6737
77 Massachusetts Ave | Office: (617)253-1779
Cambridge, MA 02139-4307 | Fax: (617)253-1755
-------------------------------------------o-------------------------------
http://web.mit.edu/decowski/www/home.html | e-mail: decowski@mit.edu
-------------------------------------------o-------------------------------
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:26 MET