我尝试右键单击'project-> properties-> linker'并添加w32api
文件夹中的所有库,但这没有帮助。经过三天的尝试,它仍然失败了!
“/ usr / bin / make”-f nbproject / Makefile-Debug.mk QMAKE = SUBPROJECTS = .build-conf make [1]:进入目录 `/ cygdrive / C /用户/Νικολας/桌面/ CppApplication_1'
“/ usr / bin / make”-f nbproject / Makefile-Debug.mk DIST /调试/ Cygwin_4.x_1-视窗/ cppapplication_1.exe
make [2]:输入目录 `/ cygdrive / C /用户/Νικολας/桌面/ CppApplication_1'
mkdir -p build / Debug / Cygwin_4.x_1-Windows
rm -f build / Debug / Cygwin_4.x_1-Windows / byreferencemain.o.d
gcc.exe -c -g -w -MMD -MP -MF build / Debug / Cygwin_4.x_1-Windows / byreferencemain.o.d -o build / Debug / Cygwin_4.x_1-Windows / byreferencemain.o byreferencemain.c
make [2]:离开目录
/cygdrive/c/Users/Νικολας/Desktop/CppApplication_1' nbproject/Makefile-Debug.mk:67: recipe for target
。build-conf'失败make [1]:离开目录
/cygdrive/c/Users/Νικολας/Desktop/CppApplication_1' nbproject/Makefile-impl.mk:39: recipe for target
。build-impl'失败make [2]: * 没有规则可以制作目标
../../../../cygwin/lib/libaclui.a', needed by
DIST /调试/ Cygwin_4.x_1-视窗/ cppapplication_1.exe”。停止。make [1]: * [.build-conf]错误2
make: * [。build-impl]错误2
BUILD FAILED(退出值2,总时间:2s)
答案 0 :(得分:0)
make [2]:*没有规则制作目标> ../../../../ cygwin / lib / libaclui.a'
看起来你不仅需要libaclui.a库, 但是这个文件应放在确切的位置, 通过类型命令确保这样的文件:
ls ../../../../cygwin/lib/libaclui.a
在cygwin控制台中