Re: Use shaders with OSMesa?

Satya Meka <[email protected]>
Newsgroups gmane.comp.video.mesa3d.user
Message-ID <[email protected]>
Hello Tom,

Thank you for your reply. I am sorry I should have posted more details. Here
is the sample code: All my includes

pragma once

#ifndef GL_BASE_H
#define GL_BASE_H

#include "AEConfig.h"


#ifdef AE_OS_WIN
#include <stdlib.h>
#include <GL\glew.h>

#include <GL\osmesa.h>
#include <GL\glu.h>
#include <GL\glut.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#endif

If I compile it, I get the following errors: all of them related to
OSMesa.h. But if I comment glew.h it compiles fine, but I can't use any glsl
shader related calls. I also tried changing the include gl.h in osmesa.h to
glew.h but still no luck. I don't know if this explains the problem or if
you need anything else, please let me know.  Thank you very much once again!


1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: error C2146: syntax error : missing ';' before identifier 'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(120)
: error C2146: syntax error : missing ';' before identifier
'OSMesaCreateContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(120)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(132)
: error C2146: syntax error : missing ';' before identifier 'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(132)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(132)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(133)
: error C2146: syntax error : missing ';' before identifier
'OSMesaCreateContextExt'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(133)
: error C2086: 'OSMesaContext GLAPIENTRY' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(120)
: see declaration of 'GLAPIENTRY'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(134)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(142)
: error C2144: syntax error : 'void' should be preceded by ';'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(142)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(142)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(143)
: error C2146: syntax error : missing ';' before identifier
'OSMesaDestroyContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(143)
: error C2182: 'GLAPIENTRY' : illegal use of type 'void'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(143)
: error C2040: 'GLAPIENTRY' : 'int' differs in levels of indirection from
'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(143)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(174)
: error C2146: syntax error : missing ';' before identifier 'GLboolean'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(174)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(174)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(175)
: error C2146: syntax error : missing ';' before identifier
'OSMesaMakeCurrent'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(175)
: error C2040: 'GLAPIENTRY' : 'GLboolean' differs in levels of indirection
from 'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(176)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(184)
: error C2146: syntax error : missing ';' before identifier 'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(184)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(184)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(185)
: error C2146: syntax error : missing ';' before identifier
'OSMesaGetCurrentContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(185)
: error C2086: 'OSMesaContext GLAPIENTRY' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(120)
: see declaration of 'GLAPIENTRY'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(185)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(202)
: error C2144: syntax error : 'void' should be preceded by ';'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(202)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(202)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(203)
: error C2146: syntax error : missing ';' before identifier
'OSMesaPixelStore'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(203)
: error C2182: 'GLAPIENTRY' : illegal use of type 'void'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(203)
: error C2040: 'GLAPIENTRY' : 'int' differs in levels of indirection from
'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(203)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(218)
: error C2144: syntax error : 'void' should be preceded by ';'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(218)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(218)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(219)
: error C2146: syntax error : missing ';' before identifier
'OSMesaGetIntegerv'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(219)
: error C2182: 'GLAPIENTRY' : illegal use of type 'void'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(219)
: error C2040: 'GLAPIENTRY' : 'int' differs in levels of indirection from
'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(219)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(233)
: error C2146: syntax error : missing ';' before identifier 'GLboolean'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(233)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(233)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(234)
: error C2146: syntax error : missing ';' before identifier
'OSMesaGetDepthBuffer'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(234)
: error C2040: 'GLAPIENTRY' : 'GLboolean' differs in levels of indirection
from 'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(235)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(249)
: error C2146: syntax error : missing ';' before identifier 'GLboolean'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(249)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(249)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(250)
: error C2146: syntax error : missing ';' before identifier
'OSMesaGetColorBuffer'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(250)
: error C2040: 'GLAPIENTRY' : 'GLboolean' differs in levels of indirection
from 'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(251)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(266)
: error C2146: syntax error : missing ';' before identifier 'OSMESAproc'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(266)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(266)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(267)
: error C2146: syntax error : missing ';' before identifier
'OSMesaGetProcAddress'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(267)
: error C2373: 'GLAPIENTRY' : redefinition; different type modifiers
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(120)
: see declaration of 'GLAPIENTRY'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(267)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(275)
: error C2144: syntax error : 'void' should be preceded by ';'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(275)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(275)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(276)
: error C2146: syntax error : missing ';' before identifier
'OSMesaColorClamp'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(276)
: error C2182: 'GLAPIENTRY' : illegal use of type 'void'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(276)
: error C2040: 'GLAPIENTRY' : 'int' differs in levels of indirection from
'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(276)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and settings\administrator\my documents\downloads\adobe after
effects cs4 sdk\examples\effect\glator\glator.cpp(837) : error C2440: '=' :
cannot convert from 'int' to 'OSMesaContext'
1>        Conversion from integral type to pointer type requires
reinterpret_cast, C-style cast or function-style cast
1>GL_base.cpp
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: error C2146: syntax error : missing ';' before identifier 'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(120)
: error C2146: syntax error : missing ';' before identifier
'OSMesaCreateContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(120)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(132)
: error C2146: syntax error : missing ';' before identifier 'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(132)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(132)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(133)
: error C2146: syntax error : missing ';' before identifier
'OSMesaCreateContextExt'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(133)
: error C2086: 'OSMesaContext GLAPIENTRY' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(120)
: see declaration of 'GLAPIENTRY'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(134)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(142)
: error C2144: syntax error : 'void' should be preceded by ';'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(142)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(142)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(143)
: error C2146: syntax error : missing ';' before identifier
'OSMesaDestroyContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(143)
: error C2182: 'GLAPIENTRY' : illegal use of type 'void'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(143)
: error C2040: 'GLAPIENTRY' : 'int' differs in levels of indirection from
'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(143)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(174)
: error C2146: syntax error : missing ';' before identifier 'GLboolean'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(174)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(174)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(175)
: error C2146: syntax error : missing ';' before identifier
'OSMesaMakeCurrent'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(175)
: error C2040: 'GLAPIENTRY' : 'GLboolean' differs in levels of indirection
from 'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(176)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(184)
: error C2146: syntax error : missing ';' before identifier 'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(184)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(184)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(185)
: error C2146: syntax error : missing ';' before identifier
'OSMesaGetCurrentContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(185)
: error C2086: 'OSMesaContext GLAPIENTRY' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(120)
: see declaration of 'GLAPIENTRY'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(185)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(202)
: error C2144: syntax error : 'void' should be preceded by ';'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(202)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(202)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(203)
: error C2146: syntax error : missing ';' before identifier
'OSMesaPixelStore'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(203)
: error C2182: 'GLAPIENTRY' : illegal use of type 'void'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(203)
: error C2040: 'GLAPIENTRY' : 'int' differs in levels of indirection from
'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(203)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(218)
: error C2144: syntax error : 'void' should be preceded by ';'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(218)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(218)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(219)
: error C2146: syntax error : missing ';' before identifier
'OSMesaGetIntegerv'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(219)
: error C2182: 'GLAPIENTRY' : illegal use of type 'void'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(219)
: error C2040: 'GLAPIENTRY' : 'int' differs in levels of indirection from
'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(219)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(233)
: error C2146: syntax error : missing ';' before identifier 'GLboolean'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(233)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(233)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(234)
: error C2146: syntax error : missing ';' before identifier
'OSMesaGetDepthBuffer'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(234)
: error C2040: 'GLAPIENTRY' : 'GLboolean' differs in levels of indirection
from 'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(235)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(249)
: error C2146: syntax error : missing ';' before identifier 'GLboolean'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(249)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(249)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(250)
: error C2146: syntax error : missing ';' before identifier
'OSMesaGetColorBuffer'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(250)
: error C2040: 'GLAPIENTRY' : 'GLboolean' differs in levels of indirection
from 'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(251)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(266)
: error C2146: syntax error : missing ';' before identifier 'OSMESAproc'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(266)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(266)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(267)
: error C2146: syntax error : missing ';' before identifier
'OSMesaGetProcAddress'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(267)
: error C2373: 'GLAPIENTRY' : redefinition; different type modifiers
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(120)
: see declaration of 'GLAPIENTRY'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(267)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(275)
: error C2144: syntax error : 'void' should be preceded by ';'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(275)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(275)
: error C2086: 'int GLAPI' : redefinition
1>        c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(119)
: see declaration of 'GLAPI'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(276)
: error C2146: syntax error : missing ';' before identifier
'OSMesaColorClamp'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(276)
: error C2182: 'GLAPIENTRY' : illegal use of type 'void'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(276)
: error C2040: 'GLAPIENTRY' : 'int' differs in levels of indirection from
'OSMesaContext'
1>c:\documents and
settings\administrator\desktop\mesa\mesa2\mesa-7.8.1\include\gl\osmesa.h(276)
: error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int



-- 
regards,
Satya G Meka.

_______________________________________________
mesa-users mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.