Hin,

That looks like something that might be caused by a macro from another header 
messing up osg/BlendFunc. You might want to look in osg/BlendFunc and see if 
there are any strings near where the error is that might be macros defined in 
another header. Specifically I know there is some MS header that defines 'min' 
and 'max' which borks things up.  I believe there is a #define you can do to 
prevent the problem... something like _NOMAXMIN or something like that.

    Andy


-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Loong Hin
Sent: Mon 4/7/2008 2:50 AM
To: [email protected]
Subject: [osg-users] OpenGL codes issues in osg version 2.2
 
Hi,

I've some opengl drawing codes that works fine in osg 1.2 libaries. But when I 
port the codes to osg 2.2 libraries, it gives the following error messages in 
the BlendFunc class. Any advise is greatly appreciated.

1>..\..\include\osg/BlendFunc(160) : error C2143: syntax error : missing ')' 
before '*'
1>..\..\include\osg/BlendFunc(160) : error C2143: syntax error : missing ';' 
before '*'
1>..\..\include\osg/BlendFunc(160) : error C2059: syntax error : ')'
1>..\..\include\osg/BlendFunc(163) : error C4430: missing type specifier - int 
assumed. Note: C++ does not support default-int
1>..\..\include\osg/BlendFunc(163) : warning C4183: 'GLBlendFuncSeparateProc': 
missing return type; assumed to be a member function returning 'int'
1>..\..\include\osg/BlendFunc(165) : error C2146: syntax error : missing ';' 
before identifier '_glBlendFuncSeparate'
1>..\..\include\osg/BlendFunc(165) : error C4430: missing type specifier - int 
assumed. Note: C++ does not support default-int
1>..\..\include\osg/BlendFunc(165) : error C4430: missing type specifier - int 
assumed. Note: C++ does not support default-int

regards

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

<<winmail.dat>>

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to