{"id":1824,"date":"2014-11-05T07:37:04","date_gmt":"2014-11-04T15:37:04","guid":{"rendered":"http:\/\/www.yclimw.com\/?p=1824"},"modified":"2021-05-31T14:08:42","modified_gmt":"2021-05-31T06:08:42","slug":"mac-cscope-compilation-errors","status":"publish","type":"post","link":"https:\/\/www.yclimw.com\/?p=1824","title":{"rendered":"mac cscope \u7f16\u8bd1\u9519\u8bef"},"content":{"rendered":"<p>\n\t\u3000\u3000\u4eca\u5929\u665a\u4e0a\u5728Mac\u4e0a\u5b89\u88c5cscope\u63d2\u4ef6\u65f6\uff0c\u78b0\u5230\u4e00\u4e2a\u7f16\u8bd1\u95ee\u9898\u3002\u867d\u7136\u6700\u8fd1\u5728\u7f16\u8bd1\u4e00\u4e2aC++\u5de5\u7a0b\u65f6\u4e5f\u78b0\u5230\u4e0d\u5c11\u7f16\u8bd1\u7684\u95ee\u9898\uff0c\u4f46\u662f\u5bf9\u4e8e\u4eca\u5929\u78b0\u5230\u7684\u8fd9\u4e2a\u95ee\u9898\uff0c\u8fd8\u662f\u7b2c\u4e00\u6b21\u78b0\u5230\u3002\u5177\u4f53\u60c5\u51b5\u5982\u4e0b\uff1a\n<\/p>\n<p>\n\t\u3000\u3000\u5728\u7f16\u8bd1cscope-15.8a\u7248\u672c\u7684\u4ee3\u7801\uff0cmake\u8fd9\u4e00\u6b65\u65f6\u629b\u51fa\u5982\u4e0b\u9519\u8bef\n<\/p>\n<div>\n<ol class=\"linenums\" style=\"padding-left: 0px;\">\n<li class=\"L0\" style=\"list-style-type: none; padding-left: 0px;\">\n<pre class=\"brush:bash;\">\r\nIn file included from build.c:50:\r\n\/usr\/include\/ncurses.h:539:40: error: macro &ldquo;cbreak&rdquo; passed 1 arguments, but takes just 0\r\n\/usr\/include\/ncurses.h:564:44: error: macro &ldquo;erasechar&rdquo; passed 1 arguments, but takes just 0\r\n\/usr\/include\/ncurses.h:600:43: error: macro &ldquo;killchar&rdquo; passed 1 arguments, but takes just 0\r\nmake[2]: *** [build.o] Error 1\r\nmake[1]: *** [all-recursive] Error 1\r\nmake: *** [all] Error 2<\/pre>\n<p>\n\t\t\t\t&nbsp;\n\t\t\t<\/p>\n<\/li>\n<\/ol>\n<\/div>\n<p>\n\t<!--more-->\n<\/p>\n<div>\n\t&nbsp;\n<\/div>\n<p>\n\t\u3000\u3000\u4e8e\u662fgrep\u4e00\u4e0bcscope\u7684\u6e90\u7801\uff0c\u627e\u5230constants.h\u4e2d\u542b\u6709\u8fd9\u51e0\u4e2a\u65b9\u6cd5\u3002\u4ee3\u7801\u5982\u4e0b:\n<\/p>\n<pre class=\"brush:cpp;\">\r\n#if (BSD || V9) &amp;&amp; !__NetBSD__ &amp;&amp; !__FreeBSD__\r\n\r\n\u3000\u3000# define TERMINFO 0 \/* no terminfo curses *\/\r\n\r\n\u3000\u3000#else\r\n\r\n\u3000\u3000# define TERMINFO 1\r\n\r\n\u3000\u3000#endif\r\n\r\n\u3000\u3000#undef TERMINFO 0\r\n\r\n\u3000\u3000#define TERMINFO 1\r\n\r\n\u3000\u3000#if !TERMINFO\r\n\r\n\u3000\u3000# ifndef KEY_BREAK\r\n\r\n\u3000\u3000# define KEY_BREAK 0400 \/* easier to define than to add #if around the use *\/\r\n\r\n\u3000\u3000# endif\r\n\r\n\u3000\u3000# ifndef KEY_ENTER\r\n\r\n\u3000\u3000# define KEY_ENTER 0401\r\n\r\n\u3000\u3000# endif\r\n\r\n\u3000\u3000# ifndef KEY_BACKSPACE\r\n\r\n\u3000\u3000# define KEY_BACKSPACE 0402\r\n\r\n\u3000\u3000# endif\r\n\r\n\u3000\u3000# if !sun\r\n\r\n\u3000\u3000# define cbreak() crmode() \/* name change *\/\r\n\r\n\u3000\u3000# endif\r\n\r\n\u3000\u3000# if UNIXPC\r\n\r\n\u3000\u3000# define erasechar() (_tty.c_cc[VERASE]) \/* equivalent *\/\r\n\r\n\u3000\u3000# define killchar() (_tty.c_cc[VKILL]) \/* equivalent *\/\r\n\r\n\u3000\u3000# else\r\n\r\n\u3000\u3000# define erasechar() (_tty.sg_erase) \/* equivalent *\/\r\n\r\n\u3000\u3000# define killchar() (_tty.sg_kill) \/* equivalent *\/\r\n\r\n\u3000\u3000# endif \/* if UNIXPC *\/\r\n\r\n\u3000\u3000#endif \/* if !TERMINFO *\/<\/pre>\n<div>\n\t&nbsp;\n<\/div>\n<p>\n\t\u3000\u3000\u770b\u8fd9\u6bb5\u4ee3\u7801\uff0c\u53ea\u8981\u8ba9TERMINFO\u4e3a1\uff0c\u5373\u53ef\u4e0d\u4f7f\u7528\u8fd9\u51e0\u4e2a\u51fd\u6570\u3002\u4e8e\u662f\u52a0\u4e0a\u4e0a\u9762\u7b2c11\u884c\u548c\u7b2c13\u884c\u4ee3\u7801\uff0c\u5373\u53ef\u901a\u8fc7\u7f16\u8bd1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u3000\u4eca\u5929\u665a\u4e0a\u5728Mac\u4e0a\u5b89\u88c5cscope\u63d2\u4ef6\u65f6\uff0c\u78b0\u5230\u4e00\u4e2a\u7f16\u8bd1\u95ee\u9898\u3002\u867d\u7136\u6700\u8fd1\u5728\u7f16\u8bd1\u4e00\u4e2aC++\u5de5\u7a0b\u65f6\u4e5f\u78b0\u5230\u4e0d\u5c11\u7f16\u8bd1\u7684 &hellip; <a href=\"https:\/\/www.yclimw.com\/?p=1824\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">mac cscope \u7f16\u8bd1\u9519\u8bef<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[232,233,234,235,236,237],"class_list":["post-1824","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-cscope","tag-error","tag-mac","tag-make","tag-osx","tag-237"],"_links":{"self":[{"href":"https:\/\/www.yclimw.com\/index.php?rest_route=\/wp\/v2\/posts\/1824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yclimw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yclimw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yclimw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yclimw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1824"}],"version-history":[{"count":2,"href":"https:\/\/www.yclimw.com\/index.php?rest_route=\/wp\/v2\/posts\/1824\/revisions"}],"predecessor-version":[{"id":1831,"href":"https:\/\/www.yclimw.com\/index.php?rest_route=\/wp\/v2\/posts\/1824\/revisions\/1831"}],"wp:attachment":[{"href":"https:\/\/www.yclimw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yclimw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yclimw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}