[vtkusers] Compiling VTK with OpenGL

Francois Bertel francois.bertel at kitware.com
Wed Aug 20 16:55:01 EDT 2008


You just missing #include <windows.h> before #include <GL/gl.h>. A classic.

http://www.opengl.org/resources/faq/technical/gettingstarted.htm#0020

PS: Keep the thread on the list please.

On Wed, Aug 20, 2008 at 4:52 PM, Pascale Beliveau <beliveaup at gmail.com> wrote:
> No, VTK was successfully compiled. This error message is happening when I am
> compiling my own program. This problem appeared when I included #include
> <GL/gl.h>
>
> Thanks for helping,
> Pascale
>
>
> On 8/20/08, Francois Bertel <francois.bertel at kitware.com> wrote:
>>
>> Is it happening when you are compiling VTK?
>>
>> On Wed, Aug 20, 2008 at 4:44 PM, Pascale Beliveau <beliveaup at gmail.com>
>> wrote:
>> > Hi VTK users,
>> >
>> >    I am relatively new with VTK, trying to install it and having
>> > problems
>> > with including the OpenGL file that will allow me to use the VTK viewer.
>> > I
>> > had the following error :
>> >
>> > C:\Program Files\Microsoft Visual Studio
>> > 8\VC\PlatformSDK\include\GL/gl.h(1152) : error C2144: syntax error :
>> > 'void'
>> > should be preceded by ';'
>> > C:\Program Files\Microsoft Visual Studio
>> > 8\VC\PlatformSDK\include\GL/gl.h(1152) : error C4430: missing type
>> > specifier
>> > - int assumed. Note: C++ does not support default-int
>> >
>> > occuring on the following line:
>> > WINGDIAPI void APIENTRY glAccum (GLenum op, GLfloat value);
>> > of file: gl.h
>> >
>> > Does anyone have an idea what I am missing?
>> >
>> > Thanks in advance for the help!
>> > Pascale
>> > _______________________________________________
>> > This is the private VTK discussion list.
>> > Please keep messages on-topic. Check the FAQ at:
>> > http://www.vtk.org/Wiki/VTK_FAQ
>> > Follow this link to subscribe/unsubscribe:
>> > http://www.vtk.org/mailman/listinfo/vtkusers
>> >
>> >
>>
>>
>>
>> --
>> François Bertel, PhD | Kitware Inc. Suite 204
>> 1 (518) 371 3971 x113 | 28 Corporate Drive
>> | Clifton Park NY 12065, USA
>> _______________________________________________
>> This is the private VTK discussion list.
>> Please keep messages on-topic. Check the FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



-- 
François Bertel, PhD | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
 | Clifton Park NY 12065, USA



More information about the vtkusers mailing list