這是在做我的堅果英寸我只是試圖包括pdcurses(即Windows的ncurses)到測試程序。聯動雖然失敗。使用Visual Studio 2010的pdcurses鏈接
使用Visual Studio 2010
我充分意識到建立正確的鏈接附加庫路徑,並列出庫本身。沒有快樂。
我已經嘗試了pdcurses網站上的各種前置設備。沒有這樣的運氣。
我當然採取從源頭上建設。按照規定從Visual Studio命令提示符處使用nmake。建好了。 Nada的鏈接。
我錯過了什麼。這也許上週五隻是爲時已晚......下面
輸出:
1>------ Build started: Project: test, Configuration: Debug x64 ------
1>Build started 14/12/2012 16:24:32.
1>InitializeBuildStatus:
1> Touching "x64\Debug\test.unsuccessfulbuild".
1>ClCompile:
1> main.c
1>C:\dep\pdcurses\curses.h(160): warning C4005: 'MOUSE_MOVED' : macro redefinition
1> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\wincon.h(101) : see previous definition of 'MOUSE_MOVED'
1>main.c(73): warning C4133: 'function' : incompatible types - from 'unsigned short [20]' to 'const char *'
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>main.obj : error LNK2019: unresolved external symbol endwin referenced in function main
1>main.obj : error LNK2019: unresolved external symbol wgetch referenced in function main
1>main.obj : error LNK2001: unresolved external symbol __imp_stdscr
1>main.obj : error LNK2019: unresolved external symbol refresh referenced in function main
1>main.obj : error LNK2019: unresolved external symbol printw referenced in function main
1>main.obj : error LNK2019: unresolved external symbol initscr referenced in function main
1>C:\proj\test.exe : fatal error LNK1120: 6 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.47
非常感謝你,這已經讓我的大腦變得疲憊,爲什麼它不工作!.......... – joelyboy94