nV News Forums


nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Syntax error when compiling NVOpenGL SDK (http://www.nvnews.net/vbulletin/showthread.php?t=5)

thursto77 07-27-02 09:39 PM

syntax error when attempting to compile NVOpenGL SDK
I apologize if this has been addressed before, but I only recently came to this forum and all previous posts had been removed.
Basic information:
Mandrake 8.1 UP
PNY GeForce 4 Ti 4600

I downloaded and installed without problems the kernel drivers and the GLX libraries. I then downloaded the NVSDK and attempted to compile the the OpenGL portion using the included Makefiles. When attempting to do so, any of the source files that include the glh_extensions.h --> glh_genext.h generate a big list of syntax errors. The errors are not very descriptive and look like this:

../../include/glh/glh_genext.h:100: syntax error before ";"
../../include/glh/glh_genext.h:101: syntax error before ";"
../../include/glh/glh_genext.h:500: syntax error before ";"

When I look through the glh_genext.h the lines correspond to the external declerations of the different extension functions which are originally defined in glext.h. What it looks like to me is that the something is not getting defined or is incorrectly defined which is causing they syntax errors when the compiler gets to the glh_genext.h file. I'm sure there is something small that I'm missing but I am at a loss as to what it is. Any assistance would be appreciated, thanks.


dgently 07-29-02 03:24 PM

I also had a lot of problems with it, though i was lucky with a recent cvs version - that is, at least the libs compiled, most demos still didn't compile.
First of all you need at least gcc 3.0.x it seems. I also had to modify the glx_extension.h and an other gl*.h header..
Maybe this post on the opengl.org forum helps you:

good luck ;)

thursto77 07-29-02 05:55 PM

thanks for the help
Thanks for your help, that other thread was helpful as well in getting the stuff to compile. I understand the mechanics behind why those changes make it work but I don't understand why it was set up the way it was in the first place, was it just a mistake or is it a multi-platform problem? Anyway, thanks again.


All times are GMT -5. The time now is 11:07 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.