程序构建成功,但是netbeans在include中显示错误

问题描述

我有它构建的程序,但是在包含中显示了一些错误

#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
/** These two files are necessary for calling CTOS API **/
#include <ctosapi.h>


/** 
** The main entry of the terminal application 
**/
int main(int argc,char *argv[])
{
    BYTE key;
        
    // Todo: Add your program here //
    CTOS_LCDTCleardisplay();
            
        CTOS_LCDTPrintXY(1,1,"Hello");
            
        CTOS_KBDGet(&key);
    
    exit(0);
    }

这是它的打印: print of netbeans window

编辑:

这是错误: 找不到包含文件

我认为我找到了问题,但是我该如何解决

problem image

您是否可以在图像中看到所查找的系统目录是错误的,因为它们两次具有“ / gneaubi”,问题是我该如何更改

解决方法

看来问题出在Netbeans IDE。 我建议您一次检查并检查问题是否已解决。

  • 右键单击您的项目,然后转到属性。
  • 在属性中,单击“运行”,然后将控制台类型更改为标准输出。

P.S:请通过将鼠标悬停在错误提示框上来提供有关错误的正确信息。当前提供的信息还不够。