I think a change got introduced during RC testing and it got missed,
although several of us did test the RC's at several points.
The MSFT C compiler doesn't accept variable declarations in the middle of
code.
There are several ways to fix it:
Add a { to line 396, before the "GLuint i;" statement.
AND add a } to line 505
or
Move lines 396 and 397 to the top of the function, to about line 267.
or
Move lines 268 and 269 past line 397
Optionally, you could change the compiler options for this file to compile
it as a C++ file, which would then allow declarations mixed into the code.
On Sun, Feb 1, 2009 at 4:04 AM, emzic <emzic@...> wrote:
>
> hello,
> i couldnt manage to get mesa 7.3 to compile under windows. i get lots of
> these errors:
>
>
> 1>..\..\..\..\src\mesa\swrast\s_triangle.c(396) : error C2275: 'GLuint' :
> illegal use of this type as an expression
> 1> c:\Users\m\Desktop\Mesa-7.3\include\GL/gl.h(156) : see
> declaration
> of 'GLuint'
> 1>..\..\..\..\src\mesa\swrast\s_triangle.c(396) : error C2146: syntax error
> : missing ';' before identifier 'i'
> 1>..\..\..\..\src\mesa\swrast\s_triangle.c(396) : error C2065: 'i' :
> undeclared identifier
> 1>..\..\..\..\src\mesa\swrast\s_triangle.c(397) : error C2275: 'GLchan' :
> illegal use of this type as an expression
> 1> c:\Users\m\Desktop\Mesa-7.3\src\mesa\main/mtypes.h(55) : see
> declaration of 'GLchan'
> 1>..\..\..\..\src\mesa\swrast\s_triangle.c(397) : error C2065: 'dest' :
> undeclared identifier
> 1>..\..\..\..\src\mesa\swrast\s_triangle.c(407) : error C2109: subscript
> requires array or pointer type
> 1>..\..\..\..\src\mesa\swrast\s_triangle.c(407) : error C2109: subscript
> requires array or pointer type
> 1>..\..\..\..\src\mesa\swrast\s_triangle.c(407) : error C2109: subscript
> requires array or pointer type
> 1>..\..\..\..\src\mesa\swrast\s_triangle.c(407) : error C2109: subscript
> requires array or pointer type
> 1>..\..\..\..\src\mesa\swrast\s_triangle.c(411) : error C2109: subscript
> requires array or pointer type
>
> and so on.
>
> i had a short look in that line, but couldnt find anything wrong with it.
>
> thanks for any help!
> --
> View this message in context:
> http://www.nabble.com/Build-Errors-on-Windows-in-Mesa-7.3-tp21766644p21766644.html
> Sent from the mesa3d-users mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Mesa3d-users mailing list
> Mesa3d-users@...
> https://lists.sourceforge.net/lists/listinfo/mesa3d-users
>
|