|
2 / 2 / 1
Регистрация: 07.07.2015
Сообщений: 27
|
||||||
Подключить графическую библиотеку OpenGL в VS 2013. Ошибки=(21.02.2016, 06:02. Показов 4632. Ответов 6
Метки нет (Все метки)
При подключении в проекте библиотеки <gl/GLU.h> компилятор выводить множество ошибок.... Как решить эту проблему?
Ошибки: Кликните здесь для просмотра всего текста
Error 1 error C2144: syntax error : 'void' should be preceded by ';' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1157 1 Snake
Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1157 1 Snake Error 3 error C2146: syntax error : missing ';' before identifier 'glAccum' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1157 1 Snake Error 4 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1157 1 Snake Error 5 error C2144: syntax error : 'void' should be preceded by ';' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1158 1 Snake Error 6 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1158 1 Snake Error 7 error C2086: 'int WINGDIAPI' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1158 1 Snake Error 8 error C2146: syntax error : missing ';' before identifier 'glAlphaFunc' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1158 1 Snake Error 9 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1158 1 Snake Error 10 error C2086: 'int APIENTRY' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1158 1 Snake Error 11 error C2146: syntax error : missing ';' before identifier 'GLboolean' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1159 1 Snake Error 12 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1159 1 Snake Error 13 error C2086: 'int WINGDIAPI' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1159 1 Snake Error 14 error C2146: syntax error : missing ';' before identifier 'glAreTexturesResident' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1159 1 Snake Error 15 error C2371: 'APIENTRY' : redefinition; different basic types c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1159 1 Snake Error 16 error C2144: syntax error : 'void' should be preceded by ';' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1160 1 Snake Error 17 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1160 1 Snake Error 18 error C2086: 'int WINGDIAPI' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1160 1 Snake Error 19 error C2146: syntax error : missing ';' before identifier 'glArrayElement' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1160 1 Snake Error 20 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1160 1 Snake Error 21 error C2086: 'int APIENTRY' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1160 1 Snake Error 22 error C2144: syntax error : 'void' should be preceded by ';' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1161 1 Snake Error 23 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1161 1 Snake Error 24 error C2086: 'int WINGDIAPI' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1161 1 Snake Error 25 error C2146: syntax error : missing ';' before identifier 'glBegin' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1161 1 Snake Error 26 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1161 1 Snake Error 27 error C2086: 'int APIENTRY' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1161 1 Snake Error 28 error C2144: syntax error : 'void' should be preceded by ';' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1162 1 Snake Error 29 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1162 1 Snake Error 30 error C2086: 'int WINGDIAPI' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1162 1 Snake Error 31 error C2146: syntax error : missing ';' before identifier 'glBindTexture' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1162 1 Snake Error 32 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1162 1 Snake Error 33 error C2086: 'int APIENTRY' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1162 1 Snake Error 34 error C2144: syntax error : 'void' should be preceded by ';' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1163 1 Snake Error 35 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1163 1 Snake Error 36 error C2086: 'int WINGDIAPI' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1163 1 Snake Error 37 error C2146: syntax error : missing ';' before identifier 'glBitmap' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1163 1 Snake Error 38 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1163 1 Snake Error 39 error C2086: 'int APIENTRY' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1163 1 Snake Error 40 error C2144: syntax error : 'void' should be preceded by ';' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1164 1 Snake Error 41 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1164 1 Snake Error 42 error C2086: 'int WINGDIAPI' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1164 1 Snake Error 43 error C2146: syntax error : missing ';' before identifier 'glBlendFunc' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1164 1 Snake Error 44 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1164 1 Snake Error 45 error C2086: 'int APIENTRY' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1164 1 Snake Error 46 error C2144: syntax error : 'void' should be preceded by ';' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1165 1 Snake Error 47 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1165 1 Snake Error 48 error C2086: 'int WINGDIAPI' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1165 1 Snake Error 49 error C2146: syntax error : missing ';' before identifier 'glCallList' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1165 1 Snake Error 50 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1165 1 Snake Error 51 error C2086: 'int APIENTRY' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1165 1 Snake Error 52 error C2144: syntax error : 'void' should be preceded by ';' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1166 1 Snake Error 53 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1166 1 Snake Error 54 error C2086: 'int WINGDIAPI' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1166 1 Snake Error 55 error C2146: syntax error : missing ';' before identifier 'glCallLists' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1166 1 Snake Error 56 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1166 1 Snake Error 57 error C2086: 'int APIENTRY' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1166 1 Snake Error 58 error C2144: syntax error : 'void' should be preceded by ';' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1167 1 Snake Error 59 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1167 1 Snake Error 60 error C2086: 'int WINGDIAPI' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1167 1 Snake Error 61 error C2146: syntax error : missing ';' before identifier 'glClear' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1167 1 Snake Error 62 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1167 1 Snake Error 63 error C2086: 'int APIENTRY' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1167 1 Snake Error 64 error C2144: syntax error : 'void' should be preceded by ';' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1168 1 Snake Error 65 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1168 1 Snake Error 66 error C2086: 'int WINGDIAPI' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1168 1 Snake Error 67 error C2146: syntax error : missing ';' before identifier 'glClearAccum' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1168 1 Snake Error 68 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1168 1 Snake Error 69 error C2086: 'int APIENTRY' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1168 1 Snake Error 70 error C2144: syntax error : 'void' should be preceded by ';' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1169 1 Snake Error 71 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1169 1 Snake Error 72 error C2086: 'int WINGDIAPI' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1169 1 Snake Error 73 error C2146: syntax error : missing ';' before identifier 'glClearColor' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1169 1 Snake Error 74 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1169 1 Snake Error 75 error C2086: 'int APIENTRY' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1169 1 Snake Error 76 error C2144: syntax error : 'void' should be preceded by ';' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1170 1 Snake Error 77 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1170 1 Snake Error 78 error C2086: 'int WINGDIAPI' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1170 1 Snake Error 79 error C2146: syntax error : missing ';' before identifier 'glClearDepth' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1170 1 Snake Error 80 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1170 1 Snake Error 81 error C2086: 'int APIENTRY' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1170 1 Snake Error 82 error C2144: syntax error : 'void' should be preceded by ';' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1171 1 Snake Error 83 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1171 1 Snake Error 84 error C2086: 'int WINGDIAPI' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1171 1 Snake Error 85 error C2146: syntax error : missing ';' before identifier 'glClearIndex' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1171 1 Snake Error 86 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1171 1 Snake Error 87 error C2086: 'int APIENTRY' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1171 1 Snake Error 88 error C2144: syntax error : 'void' should be preceded by ';' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1172 1 Snake Error 89 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1172 1 Snake Error 90 error C2086: 'int WINGDIAPI' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1172 1 Snake Error 91 error C2146: syntax error : missing ';' before identifier 'glClearStencil' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1172 1 Snake Error 92 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1172 1 Snake Error 93 error C2086: 'int APIENTRY' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1172 1 Snake Error 94 error C2144: syntax error : 'void' should be preceded by ';' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1173 1 Snake Error 95 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1173 1 Snake Error 96 error C2086: 'int WINGDIAPI' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1173 1 Snake Error 97 error C2146: syntax error : missing ';' before identifier 'glClipPlane' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1173 1 Snake Error 98 error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1173 1 Snake Error 99 error C2086: 'int APIENTRY' : redefinition c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1173 1 Snake Error 100 error C2144: syntax error : 'void' should be preceded by ';' c:\program files (x86)\windows kits\8.1\include\um\gl\gl.h 1174 1 Snake
0
|
||||||
| 21.02.2016, 06:02 | |
|
Ответы с готовыми решениями:
6
Как подключить библиотеку OpenGL Как подключить библиотеку openGL? |
|
518 / 410 / 188
Регистрация: 08.04.2013
Сообщений: 1,750
|
||||||
| 21.02.2016, 11:01 | ||||||
|
как создал проект и или просто код вставил от болды
созданный проект в крайнем случае выглядит так у 2008 VS
и ссылочка в придачу http://pmg.org.ru/nehe/nehe01.htm
0
|
||||||
|
77 / 50 / 16
Регистрация: 17.05.2015
Сообщений: 262
|
||
| 21.02.2016, 11:09 | ||
|
0
|
||
|
518 / 410 / 188
Регистрация: 08.04.2013
Сообщений: 1,750
|
|
| 21.02.2016, 11:25 | |
|
просто создай пустой проект и увидишь что будет, если такой спец уже что тогда спрашиваешь
вот еще для начала http://grafika.me/node/96 ищи в инете полно инфы как начать. У тебя свои тараканы в мозгу, нам они не нужны Добавлено через 8 минут Ну для начала наверное надо свой инструмент VS2013 хорошенько изучить, потом основы С++, а потом уже в OpenGL лезть
0
|
|
|
77 / 50 / 16
Регистрация: 17.05.2015
Сообщений: 262
|
||
| 21.02.2016, 13:47 | ||
|
Профит То что в гайде пример с этим заголовком - никак на OpenGL не влияет. Пусть TS попробует подключить не <gl/GLU.h> а просто <glut.h> или полный путь до либы прописать, предварительно файлы .lib зарегистрирует в свойствах проекта как доп. зависимости.
0
|
||
|
518 / 410 / 188
Регистрация: 08.04.2013
Сообщений: 1,750
|
|
| 21.02.2016, 14:36 | |
|
Не оправдываюсь, инструмент свой VS 2008 я тоже плохо знаю, и проекты создаю по умолчанию как есть. Для начала новичку наверное стоило бы сперва кучу информации прочитать про OpenGL Glut как с ней работать а потом уже вопросы задавать, если уж не помогло. А то написал 1 строчку кода и сразу ошибки, а что будет когда до WinApi дойдет
0
|
|
|
2 / 2 / 1
Регистрация: 07.07.2015
Сообщений: 27
|
|
| 24.02.2016, 13:28 [ТС] | |
|
я не хочу каждый раз при создании нового проэкта всегда лезть в свойства проэкта и начинать подключать все библиотеки. Поэтому спрашиваю у Вас все, как сделать так чтобы я прописал единажды и все работало без этих все настроек в свойствах
0
|
|
| 24.02.2016, 13:28 | |
|
Помогаю со студенческими работами здесь
7
Как подключить библиотеку MPIR к проекту в Visual Studio 2013 express?
Не могу подключить библиотеку opengl - glaux.dll Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |
|
Новые блоги и статьи
|
|||
|
SDL3 для Web (WebAssembly): Идентификация объектов на Box2D v3 - использование userData и событий коллизий
8Observer8 02.03.2026
Содержание блога
Финальная демка в браузере. Итоговый код: finish-collision-events-sdl3-c. zip
https:/ / www. cyberforum. ru/ blog_attachment. php?attachmentid=11680&d=1772460536
Одним из. . .
|
Реалии
Hrethgir 01.03.2026
Нет, я не закончил до сих пор симулятор. Эта задача сложнее. Не получилось уйти в плавсостав, но оно и к лучшему, возможно. Точнее получалось - но сварщиком в палубную команду, а это значит, в моём. . .
|
Ритм жизни
kumehtar 27.02.2026
Иногда приходится жить в ритме, где дел становится всё больше, а вовлечения в происходящее — всё меньше. Плотный график не даёт вниманию закрепиться ни на одном событии. Утро начинается с быстрых,. . .
|
SDL3 для Web (WebAssembly): Сборка библиотек: SDL3, Box2D, FreeType, SDL3_ttf, SDL3_mixer и SDL3_image из исходников с помощью CMake и Emscripten
8Observer8 27.02.2026
Недавно вышла версия 3. 4. 2 библиотеки SDL3. На странице официальной релиза доступны исходники, готовые DLL (для x86, x64, arm64), а также библиотеки для разработки под Android, MinGW и Visual Studio. . . .
|
|
SDL3 для Web (WebAssembly): Реализация движения на Box2D v3 - трение и коллизии с повёрнутыми стенами
8Observer8 20.02.2026
Содержание блога
Box2D позволяет легко создать главного героя, который не проходит сквозь стены и перемещается с заданным трением о препятствия, которые можно располагать под углом, как верхнее. . .
|
Конвертировать закладки radiotray-ng в m3u-плейлист
damix 19.02.2026
Это можно сделать скриптом для PowerShell. Использование
. \СonvertRadiotrayToM3U. ps1 <path_to_bookmarks. json>
Рядом с файлом bookmarks. json появится файл bookmarks. m3u с результатом.
# Check if. . .
|
Семь CDC на одном интерфейсе: 5 U[S]ARTов, 1 CAN и 1 SSI
Eddy_Em 18.02.2026
Постепенно допиливаю свою "многоинтерфейсную плату". Выглядит вот так:
https:/ / www. cyberforum. ru/ blog_attachment. php?attachmentid=11617&stc=1&d=1771445347
Основана на STM32F303RBT6.
На борту пять. . .
|
Камера Toupcam IUA500KMA
Eddy_Em 12.02.2026
Т. к. у всяких "хикроботов" слишком уж мелкий пиксель, для подсмотра в ESPriF они вообще плохо годятся: уже 14 величину можно рассмотреть еле-еле лишь на экспозициях под 3 секунды (а то и больше),. . .
|