小弟最近在作一个关于3d图形的程序,用到了OPENGL,我在link中已经把opengl32.lib glu32.lib glaux.lib 加入了.  
但是编译时老是提示gl.h出错,错误有四个,大概如下error C2143: syntax error : missing ')' before 'constant'。  
郁闷,跪求帮助  
万分感激! 
 

解决方案 »

  1.   

    你的有没有在程序中包含这些头文件啊:
    #include <GL/gl.h>
    #include <GL/glu.h>
    #include <gl/glaux.h>
      

  2.   

    我加了呀,好像还是没用,thank you all the same
      

  3.   

    #include <windows.h>
    #include <GL/gl.h>
    #include <GL/glu.h>
    #include <gl/glaux.h>
      

  4.   

    头文件都有了,但是还是出错,
    我是这样写的:
    #include <windows.h>
    #include <GL/gl.h>
    #include <GL/glu.h>
    #include <gl/glaux.h>
    是不是路径有问题呀?
      

  5.   

    不是源代码出错,是提示gl.h出错呀, 郁闷中!
      

  6.   

    #include "stdafx.h"忘了加?好像有时候是会有这种情况。
      

  7.   

    有"stdafx.h"呀,但是还是头文件出错呀,我看了一下论坛,好像有蛮多人有这样问题的,晕死了,各位大虾帮忙呀!