|
2 / 2 / 1
Регистрация: 07.07.2015
Сообщений: 27
|
||||||
Подключить графическую библиотеку OpenGL в VS 2013. Ошибки=(21.02.2016, 06:02. Показов 4608. Ответов 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 Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |
|
Новые блоги и статьи
|
||||
|
Модель микоризы: классовый агентный подход
anaschu 02.01.2026
Раньше это было два гриба и бактерия. Теперь три гриба, растение.
И на уровне агентов добавится между грибами или бактериями взаимодействий.
До того я пробовал подход через многомерные массивы,. . .
|
Учёным и волонтёрам проекта «Einstein@home» удалось обнаружить четыре гамма-лучевых пульсара в джете Млечного Пути
Programma_Boinc 01.01.2026
Учёным и волонтёрам проекта «Einstein@home» удалось обнаружить четыре гамма-лучевых пульсара в джете Млечного Пути
Сочетание глобально распределённой вычислительной мощности и инновационных. . .
|
Советы по крайней бережливости. Внимание, это ОЧЕНЬ длинный пост.
Programma_Boinc 28.12.2025
Советы по крайней бережливости. Внимание, это ОЧЕНЬ длинный пост.
Налог на собак: https:/ / **********/ gallery/ V06K53e
Финансовый отчет в Excel: https:/ / **********/ gallery/ bKBkQFf
Пост отсюда. . .
|
Кто-нибудь знает, где можно бесплатно получить настольный компьютер или ноутбук? США.
Programma_Boinc 26.12.2025
Нашел на реддите интересную статью под названием Anyone know where to get a free Desktop or Laptop?
Ниже её машинный перевод.
После долгих разбирательств я наконец-то вернула себе. . .
|
Thinkpad X220 Tablet — это лучший бюджетный ноутбук для учёбы, точка.
Programma_Boinc 23.12.2025
Рецензия / Мнение/ Перевод
Нашел на реддите интересную статью под названием The Thinkpad X220 Tablet is the best budget school laptop period . Ниже её машинный перевод.
Thinkpad X220 Tablet —. . .
|
|
PhpStorm 2025.3: WSL Terminal всегда стартует в ~
and_y87 14.12.2025
PhpStorm 2025. 3: WSL Terminal всегда стартует в ~ (home), игнорируя директорию проекта
Симптом:
После обновления до PhpStorm 2025. 3 встроенный терминал WSL открывается в домашней директории. . .
|
Как объединить две одинаковые БД Access с разными данными
VikBal 11.12.2025
Помогите пожалуйста !! Как объединить 2 одинаковые БД Access с разными данными.
|
Новый ноутбук
volvo 07.12.2025
Всем привет.
По скидке в "черную пятницу" взял себе новый ноутбук Lenovo ThinkBook 16 G7 на Амазоне:
Ryzen 5 7533HS
64 Gb DDR5
1Tb NVMe
16" Full HD Display
Win11 Pro
|
Музыка, написанная Искусственным Интеллектом
volvo 04.12.2025
Всем привет. Некоторое время назад меня заинтересовало, что уже умеет ИИ в плане написания музыки для песен, и, собственно, исполнения этих самых песен. Стихов у нас много, уже вышли 4 книги, еще 3. . .
|
От async/await к виртуальным потокам в Python
IndentationError 23.11.2025
Армин Ронахер поставил под сомнение async/ await. Создатель Flask заявляет: цветные функции - провал, виртуальные потоки - решение. Не threading-динозавры, а новое поколение лёгких потоков. Откат?. . .
|