#include with“"或<> [英] #include with "" or <>

查看:119
本文介绍了#include with“"或<>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我有一个奇怪的问题。我希望我在这个小组中没有错;

如果是这种情况请告诉我。


我正在尝试编译一个相当简单的C程序。只要我使用:

#include< \\ textp.h>

gcc告诉我他找不到extp.h.

As我写完后立即打印
#include" \\ textp.h"

继续编译。不幸的是,在extp.h中还有

#includes使用<所以我稍后在

编译过程中遇到类似的错误。可能是环境问题

变量或路径。


感谢您的帮助!

Sebastian

Hi,

I hava a somehow strange problem. I hope I am not wrong in this group;
if this is the case please let me know.

I am trying to compile a rather simple C program. As long as I use:
#include <extp.h>
gcc tells me that he cannot find extp.h.
As soon as I write
#include "extp.h"
the compiling continues. Unfortunately, in extp.h there are again
#includes that use <so I get a similar error later on during the
compiling process. Probably it is a problem with the environment
variables or paths.

Thanks for your help!
Sebastian

推荐答案

Sebastian Faust说:
Sebastian Faust said:



我有一个奇怪的问题。我希望我在这个小组中没有错;

如果是这种情况请告诉我。


我正在尝试编译一个相当简单的C程序。只要我使用:

#include< \\ textp.h>

gcc告诉我他找不到extp.h.

As我写完后立即打印
#include" \\ textp.h"

继续编译。
Hi,

I hava a somehow strange problem. I hope I am not wrong in this group;
if this is the case please let me know.

I am trying to compile a rather simple C program. As long as I use:
#include <extp.h>
gcc tells me that he cannot find extp.h.
As soon as I write
#include "extp.h"
the compiling continues.



使用myheader.h您自己创建的标题的表单。对于标准的

标头和实现提供的任何标头,请使用

< implementationuppliedheader.hform。

Use the "myheader.h" form for headers you create yourself. For standard
headers and any headers supplied by the implementation, use the
<implementationsuppliedheader.hform instead.


不幸的是,在extp.h中还有

#includes使用<所以我稍后在

编译过程中遇到类似的错误。
Unfortunately, in extp.h there are again
#includes that use <so I get a similar error later on during the
compiling process.



如果这些是标准标题,则表示您遇到问题。否则,请参见上文。

If those are standard headers, you have a problem. Otherwise, see above.


可能是环境变量或路径存在问题。
Probably it is a problem with the environment variables or paths.



如果是这样,请在gcc小组中询问。


-

Richard Heathfield

Usenet是一个奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk

电子邮件:rjh在上述域名中, - www。

If so, ask in a gcc group.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.


Richard Heathfield< rj*@see.sig.invalidwrote :
Richard Heathfield <rj*@see.sig.invalidwrote:

如果是这样,请在gcc组中询问。
If so, ask in a gcc group.



实际上几乎所有人都用C开发的新闻组。

这不是其中一个组。


-

Thomas E. Dickey
http: //invisible-island.net
ftp://invisible-island.net


Sebastian Faust写道:
Sebastian Faust wrote:




我有一个奇怪的问题。我希望我在这个小组中没有错;

如果是这种情况请告诉我。


我正在尝试编译一个相当简单的C程序。只要我使用:

#include< \\ textp.h>

gcc告诉我他找不到extp.h.

As我写完后立即打印
#include" \\ textp.h"

继续编译。不幸的是,在extp.h中还有

#includes使用<所以我稍后在

编译过程中遇到类似的错误。可能这是环境问题

变量或路径。
Hi,

I hava a somehow strange problem. I hope I am not wrong in this group;
if this is the case please let me know.

I am trying to compile a rather simple C program. As long as I use:
#include <extp.h>
gcc tells me that he cannot find extp.h.
As soon as I write
#include "extp.h"
the compiling continues. Unfortunately, in extp.h there are again
#includes that use <so I get a similar error later on during the
compiling process. Probably it is a problem with the environment
variables or paths.



添加选项-I。编译器命令行调用。


a +,ld。

add the option -I. to your compiler command line invocation.

a+, ld.


这篇关于#include with“&quot;或&lt;&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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