C ++缺少指令编译 [英] C++ Missing Directives Compilation

查看:93
本文介绍了C ++缺少指令编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Visual Studio 2017,编译在Microsoft Visual C ++ 6.0中开发的C ++程序,现在在Win 10下实现。当我尝试编译程序时,得到输出错误,找不到指令库:

Using Visual Studio 2017, compiling a C++ program that was developed in Microsoft Visual C++ 6.0, now implementing under Win 10. When I try to compile the program, getting output errors, cannot find the directive libraries:

#include< windows.h>

#include <windows.h>

#include< gl\gl.h>

#include <gl\gl.h>

#include< gl\glu.h>

#include <gl\glu.h>

#include< gl\glaux.h>

#include <gl\glaux.h>

#include< stdio。 h>

#include <stdio.h>

@include< math.h>

@include <math.h>

使用Opengl调用,这就是我需要GL库例程的原因。不熟悉Virtual Studio 2017,因此它与Microsoft Visual C ++ 6.0不同,是否需要指定扩展名?请告知,Sid Kraft

Am using Opengl calls, that's why I need the GL Library routines. Not familiar with Virtual Studio 2017 so does it differ from Microsoft Visual C++6.0 and do I need to specify extensions or? Please advise, Sid Kraft

推荐答案

您的邮件有点令人困惑。 没有"指令库"这样的东西。 你是说它找不到包含文件? 它是否缺少所有包含文件,或仅包含OpenGL包含文件? 如果它缺少所有包含文件的
,则安装Visual Studio时一定存在问题。

Your message is a bit confusing.  There's no such thing as "directive libraries".  Are you saying it cannot find the include files?  Is it missing ALL of the include files, or only the OpenGL include files?  If it is missing all of the include files, then there must have been a problem installing Visual Studio.

OpenGL文件是Windows SDK的一部分,不是Visual的一部分。工作室&NBSP;您是否安装了Windows SDK?

The OpenGL files are part of the Windows SDK, not part of Visual Studio.  Have you installed the Windows SDK?

glaux是Microsoft创建的包装库。 它不是OpenGL的一部分,它不再包含在内。 如果你需要那里的例程,互联网上有一些地方你可以下载包含文件,但你可能会考虑是否有
有标准的OpenGL方法来完成你的任务。

glaux was a wrapper library that Microsoft created.  It's not part of OpenGL, and it's not included any more.  If you need routines from there, there are places on the Internet where you can download the include file, but you might consider whether there are standard OpenGL methods of accomplishing your task.

顺便说一句,传统上只使用#include指令中的正斜杠。 这样,您的代码就有可能在其他非Microsoft系统上工作。

By the way, traditionally one uses only forward slashes in #include directives.  That way, your code stands a chance of working on other non-Microsoft systems.


这篇关于C ++缺少指令编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆