12 2010 档案

摘要:This isn't a header file issue. Header files are for compiling. This is a linking issue. It needs a library that contains gluPerspective. That library is libGLU.Try:g++ -Wall -o cube main.cpp imageloader.cpp -lglut -lGLU -lGL 阅读全文
posted @ 2010-12-31 20:34 Chjun 阅读(741) 评论(0) 推荐(0)
摘要:1.安装基本库 sudo apt-get install build-essential2.安装opengl工具箱 sudo apt-get install freeglut3-dev3.Coding...4.g++ ***.c -o *** -lglut5../*** 阅读全文
posted @ 2010-12-29 17:02 Chjun 阅读(311) 评论(0) 推荐(0)
摘要:You have to include resource.h, where the resource editor defines 'IDC_***' or 'IDD_***' 阅读全文
posted @ 2010-12-17 16:22 Chjun 阅读(452) 评论(0) 推荐(0)
摘要:问题:error LNK2019: 无法解析的外部符号 _gluPerspective@32参考解决方案:#include gl\gl.h //opengl32.lib#include gl\glu.h //glu32.lib#pragma comment(lib, "OPENGL32.LIB")#pragma comment(lib, "GLU32.LIB")put it in stdafx.h注:#pragma comment使得程序无需在编译器中设置additional lib。参考:http://topic.csdn.net/u/20090320/02/AC82DCB7-8 阅读全文
posted @ 2010-12-15 16:10 Chjun 阅读(550) 评论(0) 推荐(0)
摘要:问题:MFC程序移植到64位WIN7时,编译通过,但运行时弹出如下对话框。      解决方法:排除指针由32位变动到64位引起的原因后,将用到的DLL文件放在 syswow64 目录下。参考:http://topic.csdn.net/u/20100815/00/21800B99-EBA8-4605-BBFE-5639A5C6AE40.html 阅读全文
posted @ 2010-12-15 13:55 Chjun 阅读(2449) 评论(0) 推荐(0)
摘要:原文链接:http://tutorial.it55.com/ChengXuKaiFa/VisualC/2009/12/17/16472716660.html 用MFC制作的工程由很多文件构成,它不能象一般C++程序那样随意在类外定义全局变量,在这里要想定义能被工程内多个文件共享的全局变量和函数必须用一些特殊方法才行。实际上有多种方法可以实现,这里只介绍两种方法。一、在应用程序类中定义  用MFC生成的工程中都有一个名为CxxxApp的类,它派生于CWinApp类。这个类主要进行程序的初始化,生成文档、视图对象等工作。我们可以把需要全局访问的变量和函数定义为这个类的成员变量和成员函数,就可以实 阅读全文
posted @ 2010-12-05 22:44 Chjun 阅读(332) 评论(0) 推荐(0)