Форум программистов
 

Восстановите пароль или Зарегистрируйтесь на форуме, о проблемах и с заказом рекламы пишите сюда - alarforum@yandex.ru, проверяйте папку спам!

Вернуться   Форум программистов > C/C++ программирование > Общие вопросы C/C++
Регистрация

Восстановить пароль
Повторная активизация e-mail

Купить рекламу на форуме - 42 тыс руб за месяц

Ответ
 
Опции темы Поиск в этой теме
Старый 12.04.2009, 16:15   #1
KrL^^
Пользователь
 
Регистрация: 01.10.2008
Сообщений: 12
По умолчанию Много ошибок в gl.h при подключении в визуал студио 2008

Код:
#include "stdafx.h"
#include <gl\GL.h>#include "stdafx.h"
#include <gl\GL.h>
#include <gl\GLU.h>
#include <gl\GLAux.h>

int _tmain(int argc, _TCHAR* argv[])
{
	return 0;
}
выдает 143 ошибки на gl.h
1>c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h( 1152) : error C2144: syntax error : 'void' should be preceded by ';'
1>c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h( 1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h( 1152) : error C2146: syntax error : missing ';' before identifier 'glAccum'
1>c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h( 1152) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h( 1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h( 1153) : error C2144: syntax error : 'void' should be preceded by ';'
1>c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h( 1153) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h( 1153) : error C2086: 'int WINGDIAPI' : redefinition
1> c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h( 1152) : see declaration of 'WINGDIAPI'
1>c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h( 1153) : error C2146: syntax error : missing ';' before identifier 'glAlphaFunc'
1>c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h( 1153) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h( 1153) : error C2086: 'int APIENTRY' : redefinition
1> c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h( 1152) : see declaration of 'APIENTRY'
1>c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h( 1153) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h( 1154) : error C2146: syntax error : missing ';' before identifier 'GLboolean'
1>c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h( 1154) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h( 1154) : error C2086: 'int WINGDIAPI' : redefinition
1> c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h( 1152) : see declaration of 'WINGDIAPI'
1>c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h( 1154) : error C2146: syntax error : missing ';' before identifier 'glAreTexturesResident'

и так далее.. как исправить?
KrL^^ вне форума Ответить с цитированием
Старый 12.04.2009, 20:43   #2
ISergeyN
Maniac
Форумчанин
 
Аватар для ISergeyN
 
Регистрация: 03.01.2009
Сообщений: 450
По умолчанию

Дастаточно подключить только
Код:
#include <gl\GLAux.h>
Стандартные библиотеки разработаны с учетом многолетнего опыта лучших программистов и они не больны "детскими болезнями крутизны в программизме"....
ISergeyN вне форума Ответить с цитированием
Ответ


Купить рекламу на форуме - 42 тыс руб за месяц



Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Проблемы при подключении MySQL к Delphi Umen БД в Delphi 13 18.04.2011 18:06
Нужна помощь в подключении Access к интерфейсу Builder C++ Cvetok Помощь студентам 4 29.05.2008 16:41
При подключении к нету появляется мессаг.Как сделать??? Teen4jump Работа с сетью в Delphi 8 26.06.2007 17:37