Bug 10829 - Подключение GL/glew.h не позволяет использовать GL/glut.h
Summary: Подключение GL/glew.h не позволяет использовать GL/glut.h
Status: CLOSED DUPLICATE of bug 10836
Alias: None
Product: Sisyphus
Classification: Development
Component: libglew (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Nobody's working on this, feel free to take it
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-13 00:51 MSK by serpiph
Modified: 2007-02-14 11:01 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description serpiph 2007-02-13 00:51:32 MSK
При подключении GL/glew.h в конце этого файла стоит
#undef GLAPIENTRY
в результате чего при подключении файла GL/glut.h возникает ошибка описания
прототипа из-за того, что GL/glut.h ожидает получить привязку GLAPIENTRY от
GL/gl.h и GL/glu.h к текущей системе:
#define GLUTAPIENTRY GLAPIENTRY
а GL/glew.h внутри себя вызывает GL/glu.h и после удаляет это определение. Пока
единственный обход несредственно для ALTLinux в виде
#include <GL/glew.h>
#define GLAPIENTRY
#include <GL/glut.h>
в тех програмах, которые используют glew.h
Steps to Reproduce:
1.Тестовый файл:
#define <GL/glew.h>
#define <GL/glut.h>
int main(void)
{
  return 0;
}
2. gcc -o test.o -c test.c
Actual Results:  
Ошибка сборки

Expected Results:  
Нормальная сборка
Comment 1 serpiph 2007-02-14 11:00:00 MSK

*** This bug has been marked as a duplicate of 10836 ***