【问题标题】:VS2015 Additional Include Directories not finding included header?VS2015 附加包含目录没有找到包含的标题?
【发布时间】:2016-03-07 01:30:28
【问题描述】:

问题标题说明了一切。 这是我添加的包含目录的项目设置。 这是我目前的程序

#include <curses.h>

int main()
{
    initscr();                    /* Start curses mode */
    printw("Hello World !!!");    /* Print Hello World */
    refresh();                    /* Print it on to the real screen */
    getch();                      /* Wait for user input */
    endwin();                     /* End curses mode */

    return 0;
}

这是错误。

并且 curses.h 文件在包含文件夹中

任何人都可能知道我哪里出错了?

【问题讨论】:

  • 您好像错过了 $(ProjectDir) 和 include 之间的斜线
  • 根据文档,斜杠包含在宏中

标签: c++ visual-studio-2015 pdcurses


【解决方案1】:

尝试使用#include "curses.h",而不是#include &lt;curses.h&gt;

【讨论】:

    猜你喜欢
    • 2011-10-16
    • 2015-05-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-13
    • 1970-01-01
    • 2016-09-04
    • 1970-01-01
    相关资源
    最近更新 更多