Bug 5661 - Compile errors under Visual Studio 7.1.3088
Summary: Compile errors under Visual Studio 7.1.3088
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: 6.4
Hardware: x86 (IA32) Windows (All)
: high normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-20 04:25 UTC by David Baszucki
Modified: 2008-05-26 20:13 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description David Baszucki 2006-01-20 04:25:34 UTC
Hi - new user here, so I hope I'm not doing anything wrong.  I'm trying to 
build Mesa under Visual Studio.NET 2003 (7.1.3088) in RELEASE configuration.  
I get the following compile errors.  I get similar errors when trying to build 
DEBUG.

In addition, when I opened the original mesa.sln file, I was asked if I wanted 
to convert to the current version of Visual Studio - this may imply that the 
solution file is from an older version of Visual Studio?

Thanks and I hope I'm not missing something!

David Baszucki
david@roblox.com


------ Build started: Project: mesa, Configuration: Release Win32 ------

Compiling...
s_triangle.c
c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error 
C2275: 'GLuint' : illegal use of this type as an expression
        ../../../../include\GL\gl.h(155) : see declaration of 'GLuint'
c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error 
C2146: syntax error : missing ';' before identifier 'i'
c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error 
C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error 
C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error 
C2143: syntax error : missing ';' before 'identifier'
c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error 
C2065: 'i' : undeclared identifier
c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error 
C2275: 'GLuint' : illegal use of this type as an expression
        ../../../../include\GL\gl.h(155) : see declaration of 'GLuint'
c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error 
C2146: syntax error : missing ';' before identifier 'i'
c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error 
C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error 
C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
c:\temp\MesaLib-6.4.1\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error 
C2143: syntax error : missing ';' before 'identifier'

Build log was saved at "file://c:\temp\MesaLib-6.4.1\Mesa-6.4.1\windows\Vc7
\mesa\mesa\Release\BuildLog.htm"
mesa - 11 error(s), 0 warning(s)


------ Build started: Project: gdi, Configuration: Release Win32 ------

Linking...
LINK : fatal error LNK1181: cannot open input file 'mesa.lib'

Build log was saved at "file://c:\temp\MesaLib-6.4.1\Mesa-6.4.1\windows\Vc7
\mesa\gdi\Release\BuildLog.htm"
gdi - 1 error(s), 0 warning(s)


------ Build started: Project: glu, Configuration: Release Win32 ------

Linking...
..\..\..\..\src\glu\sgi\glu.def(1) : warning LNK4017: DESCRIPTION statement 
not supported for the target platform; ignored
   Creating library .\Release/GLU32.lib and object .\Release/GLU32.exp
mipmap.obj : error LNK2019: unresolved external symbol _glTexImage3D@40 
referenced in function _closestFit3D
Release/GLU32.DLL : fatal error LNK1120: 1 unresolved externals

Build log was saved at "file://c:\temp\MesaLib-6.4.1\Mesa-6.4.1\windows\Vc7
\mesa\glu\Release\BuildLog.htm"
glu - 2 error(s), 1 warning(s)


------ Build started: Project: osmesa, Configuration: Release Win32 ------

Compiling...
osmesa.c
../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2143: syntax 
error : missing ';' before 'type'
../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error 
C2275: 'GLchan' : illegal use of this type as an expression
        ../../../../src\mesa\main\mtypes.h(49) : see declaration of 'GLchan'
../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2065: 'img' : 
undeclared identifier
../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2065: 'i' : 
undeclared identifier
../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : warning C4018: '<' : 
signed/unsigned mismatch
../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2109: subscript 
requires array or pointer type
../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2109: subscript 
requires array or pointer type
../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2109: subscript 
requires array or pointer type
../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2109: subscript 
requires array or pointer type
../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error 
C2275: 'GLuint' : illegal use of this type as an expression
        ../../../../include\GL\gl.h(155) : see declaration of 'GLuint'
../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2146: syntax 
error : missing ';' before identifier 'i'
../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2144: syntax 
error : '<Unknown>' should be preceded by '<Unknown>'
../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2144: syntax 
error : '<Unknown>' should be preceded by '<Unknown>'
../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2143: syntax 
error : missing ';' before 'identifier'
../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error 
C2275: 'GLuint' : illegal use of this type as an expression
        ../../../../include\GL\gl.h(155) : see declaration of 'GLuint'
../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : warning C4018: '<' : 
signed/unsigned mismatch
../../../../src\mesa\main\..\swrast\s_tritemp.h(1159) : error C2109: subscript 
requires array or pointer type

Build log was saved at "file://c:\temp\MesaLib-6.4.1\Mesa-6.4.1\windows\Vc7
\mesa\osmesa\Release\BuildLog.htm"
osmesa - 15 error(s), 2 warning(s)


---------------------- Done ----------------------

    Build: 0 succeeded, 4 failed, 0 skipped
Comment 1 Brian Paul 2006-01-20 07:37:44 UTC
Fixed in CVS.  Grab the latest s_triangle.c and s_tritemp.h (for the 6.4 branch).

I don't know about the "mesa.sln" thing.
Comment 2 Karl Schultz 2006-01-21 14:20:16 UTC
(In reply to comment #0)
> Hi - new user here, so I hope I'm not doing anything wrong.  I'm trying to 
> build Mesa under Visual Studio.NET 2003 (7.1.3088) in RELEASE configuration.  
> I get the following compile errors.  I get similar errors when trying to build 
> DEBUG.
> 
Brian covered this.

> In addition, when I opened the original mesa.sln file, I was asked if I wanted 
> to convert to the current version of Visual Studio - this may imply that the 
> solution file is from an older version of Visual Studio?

The VC7 project files were created with 7.0, so you are getting notified of the
conversion from 7.0 to 7.1.  This is harmless.
Comment 3 Karl Schultz 2008-05-26 20:13:36 UTC
problem solved some time ago.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.