![使用 opengl 运行 cuda 时出错](https://linux22.com/image/1028316/%E4%BD%BF%E7%94%A8%20opengl%20%E8%BF%90%E8%A1%8C%20cuda%20%E6%97%B6%E5%87%BA%E9%94%99.png)
我尝试使用命令“nvcc -lglut julia.cu -o julia”编译 julia 示例代码并收到以下错误
Starting build...
/usr/bin/ld: /tmp/tmpxft_00004758_00000000-11_julia_gpu.o: undefined reference to symbol 'glFlush'
/usr/bin/ld: /lib/aarch64-linux-gnu/libGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Build finished with error(s).
The terminal process terminated with exit code: -1.
我也尝试安装 OpenGL,但出现同样的错误。