|
http://plib.sourceforge.net/download.html
编译其例子出现编译错误:
fnt_test.obj : error LNK2001: unresolved external symbol ___glutInitWithExit@12
fnt_test.obj : error LNK2001: unresolved external symbol ___glutCreateWindowWithExit@8
解决方案:
(1)除了指正确配置opengl库的incldue和lib目录,
还要参考:
(2)解决方法是: 在main.c 的 #include <GL/glut.h>之前添加 #define GLUT_DISABLE_ATEXIT_HACK ; 然后问题就解决了,在网上找了很久,什么添加lib路径等方法都没用,感谢sosidami的解决方法,可是他vs是中文,好不容易才找到,原文链接: http://blog.csdn.net/sosidami/article/details/5408576
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-5-26 12:03
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社