Compile error in C++ 5.8 when using typedef

Hello all,

I am new to using Sun Studio 11 C++ 5.8 compiler.

an error occurs to me when I put this line on my header file

typedef DWORD int;

line6: Error: "," expected instead of "int".

When I replace the line with this line

typedef DWORD ,;

then the error disappers.

I tried compiling it using g++ and I encounter no problems.

I am using Solaris 10 and I installed patched the C++ 5.8 compiler with patch 121017-10

I don't know what is causing the problem..

Please help.

Thanks in advance.

Marc Glenn

[590 byte] By [mjamona] at [2007-11-27 4:02:53]
# 1
You've probably meanttypedef int DWORD;That is, if you wanted to define alias for type int named DWORD.
MaximKartasheva at 2007-7-12 9:07:38 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
Think it solved it. Thanks
mjamona at 2007-7-12 9:07:38 > top of Java-index,Development Tools,Solaris and Linux Development Tools...