【发布时间】:2017-04-27 01:12:24
【问题描述】:
[ 6%] 构建目标ChainedLib
[ 12%] 构建目标 ChainedApp
[15%] 链接 CXX 可执行 ColorConsole
/usr/bin/ld: 无法打开输出文件 ColorConsole: 是目录
collect2: 错误:ld 返回 1 个退出状态
make[2]: *** [ColorConsole] 오류 1
make[1]: *** [CMakeFiles/ColorConsole.dir/all] 오류 2
make: *** [all] 오류 2
我安装了 plog 库。 cmake CMakeList.txt 完成。但是,makefile 失败了 我不知道原因
【问题讨论】:
-
错误就在那里。它正在尝试链接一个名为
ColorConsole的可执行文件,但有一个目录名为该目录。