我正在尝试在 jGRASP 上设置 C++。我知道 java 程序运行良好。我得到的错误是:
----jGRASP exec: g++ -g -o Project Simulator.exe Project Simulator.cpp -lglu32 -lfreeglut -lopengl32
c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../../mingw32/bin/ld.exe: cannot find -lfreeglut
collect2.exe: error: ld returned 1 exit status
----jGRASP wedge2: exit code for process is 1.
----jGRASP: operation complete.
我是否缺少安装?我需要在某处更改路径吗?
最佳答案
编译器应该是 g++ 通用的
在c++语言下通过SETTINGS > COMPILER SETTINGS > WORKSPACE完成。
关于c++ - jGRASP c++ 安装问题找不到-lfeglut,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43218878/