Problem compiling root code with Sun CC5.0 " Error: A typedef name

Yannick Patois (patois@ganil.fr)
Mon, 19 Jul 1999 19:03:19 +0200


Hello,

The CC compiler on SUN was just upgraded from a 4.2 version to the 5.0,
and when I tryed to compile a small code calling some include form root
(Version 2.22/09 13 July 1999), some errors are returned by teh
compiler in one of the root header :

"root/include/TObject.h", line 49: Error: A typedef name cannot be used
in an elaborated type specifier..
"root/include/TString.h", line 47: Error: A typedef name cannot be used
in an elaborated type specifier..
"root/include/TString.h", line 48: Error: A typedef name cannot be used
in an elaborated type specifier..

I can avoid this error by removing the
#include <fstream.h>
In my file, but then I cant create ofstream and ifstream objet (which I
need)...

And it was working with the CC4.2 compiler.

Anybody has a workaroud ?

Thanx,

Yannick

-- 
 _/ Yannick Patois \_________________ Address (home) __________________ 
| irc(undernet): Garp on #france25+ | La Villa des Sciences            |
| email : patois@ganil.fr           | 12, avenue de Cambridge          |
| web :http://www.sura.org/~patois/ | 14200 Herouville-Saint-Clair     |
| Tel(home) :+33 (0)2 31 94 50 32   | FRANCE                           |
|___________________________________|__________________________________|