关于使用Code::Blocks导入Visual Studio编写的OpenGL工程 问题
最近接触了编程软件CodeBlocks,并被它的简约、轻量深深吸引了,好想赶快摸透,来永远替换其他庞大的IDE……但是最近关于图形学的编程问题让我怀疑是不是不能完全依靠它……问题如下……
我按照网上文档——Using OpenGL & GLUT in Code::Blocks配置好了所有类库、头文件、动态链接库文件,并且测试成功了~但是当我导入OpengGL的 visual studio工程后,问题就来了。我的操作是这样的
1.导入visual studio 工程。
2.右键选择头文件属性,点上compile file、link file(这是刚搞明白的,不然会出现找不到gl函数的问题!)
3.编译运行一下
编译很顺利,但没有运行,结果如下
-------------- Build: Debug Win32 in OOGLFrame ---------------
Linking executable: Debug\OOGLFrame.exe
Example.h.gch: file not recognized: File format not recognized
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
请问问题在哪呢?是不是CodeBlocks无法驾驭现有的visual studio 工程呢?
谢谢了!