|
|

楼主 |
发表于 2005-4-23 17:04:00
|
显示全部楼层
我明白了!
在Dev-Cpp中,
当你使用Windows Application,
如果文件头这样:
#include <windows.h>
#include <GL/gl.h>
#include <GL/glaux.h>
则:
工程->工程属性->普通->(选择)WIN32图形界面程序
工程->工程属性->参数->连接器(不输入任何东西!)
;
当你使用Windows Application,
如果文件头这样:
#include <windows.h>
#include <GL/gl.h>
则:
工程->工程属性->普通->(选择)WIN32图形界面程序
工程->工程属性->参数->连接器(输入):-lopengl32
======================================================================================在VC6.0中,
File->New-> rojects->Win32 Application->An empty project(必须!)
然后File->New->C++Source File
接着Project->Project Setting->Link->Object/library modules(输入):
OpenGL32.lib glaux.lib glu32.lib
Tools->Options->Directories->Show directories for(选):Includes->Directories 双击虚线方框,输入)
(假设VC安装在C:\Programe Files下)C:\Programe Files\Microsoft Visual Studio\VC98\INCLUDE\GL
源程序的文件头部:
#include <windows.h>
#include <GL/gl.h>
#include <GL/glaux.h>
======================================================================================
不使用控制台程序!!!! |
|