opengl - 如何在 ADA 中集成 GLUT 时解决“未定义的 glGetDoublev 引用”?使用的 IDE:GPS。我试图创建一个简单的窗口
问题描述
示例主代码:(main.adb)
with GL;
with GLUT;
procedure Main is
L_window_status : Integer;
begin
GLUT.Init;
L_window_status:= GLUT.CreateWindow(Title => "PAV") ;
end Main;
控制台错误消息:
gprbuild -d -PD:\Training\IPM\opengl.gpr
Bind
[gprbind] main.bexch
[Ada] main.ali
Link
[link] main.adb
c:/gnat/2019/bin/../libexec/gcc/x86_64-pc-mingw32/8.3.1/ld.exe: D:\Training\IPM\obj\GL.o:GL.adb:(.text+0x49a0): undefined reference to `glGetDoublev'
c:/gnat/2019/bin/../libexec/gcc/x86_64-pc-mingw32/8.3.1/ld.exe: D:\Training\IPM\obj\GL.o:GL.adb:(.text+0x49bb): undefined reference to `glGetString'
解决方案
推荐阅读
- node.js - 在 Promise 中调用函数
- flutter - 如何通过小部件添加新的 html 元素?
- javascript - How to read JSON output with the object named "@attributes"?
- python - ValueError: Cannot convert to Excel - Scraper in Python
- git - Why are git commits on a merged branch showing on my main branch?
- javascript - display window size using javascript
- symfony - Custom API Platform data provider not being found
- regex - RegEx 用于 4 个字符和 7 个数字。没有特殊字符
- javascript - 在 Selenium 中抓取网页的 Javascript 渲染元素
- symfony - symfony & translation : 如何翻译标准表达和形式?