简体   繁体   English

C错误-该数字代表什么?

[英]C Error - What does the number stand for?

I couldn't find anything on this, but probably its just because I don't know how to search, because i don't know how to call it. 我找不到任何东西,但是可能只是因为我不知道如何搜索,因为我不知道如何称呼它。

I tried to compile some C-Code and got the following error: 我尝试编译一些C代码并收到以下错误:

/path/to/file.h:55:32: error: path/to/include.h: No such file or directory

I know the error and i know that the problem is in file.h at line 55 - where's an include, which doesn't exist. 我知道该错误,并且我知道问题file.hline 55 file.h中-包含位置(不存在)。

But what does the 32 stand for? 但是32代表什么呢?

Marty 马蒂

It's the number of the character within line 55 . 这是第55行中的字符编号。

This might also be referred to as "column number" (see comment) but I find that slightly misleading, as eg a tab character will generally take up more than one column in your editor, but still count as only one character for the compiler. 这也可能被称为“列号”(请参见注释),但是我发现这有点误导,例如,制表符通常会在编辑器中占据多于一列,但对于编译器仍然仅算作一个字符。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM