我试图在Mac上构建libpipeline,但是我在使用autotools的其他程序中遇到了一些错误。
这是我遇到的第一个错误:
/Developer/usr/bin/ranlib: file: .libs/libgnu.a(sig-handler.o) has no symbols第二个错误要神秘得多:
warning: /Developer/usr/bin/nm: no name list最后,我得到了这个错误,这是一个推测上的错误的顶点。
Undefined symbols for architecture x86_64:
"_program_name", referenced from:
_error in libgnu.a(error.o)
_error_at_line in libgnu.a(error.o)
ld: symbol(s) not found for architecture x86_64完整日志:https://gist.github.com/ahyattdev/7e4da95d48a6d25ad77aad926a14e7b0
复制步骤:获取libpipeline 1.4.1的源,运行configure; make。
发布于 2016-04-25 00:06:17
This comment was the main contribution to this answer
配置命令:
CFLAGS="-Wl,-flat_namespace,-undefined,suppress -Iwindows.h" ./configure与窗口特定的标题相关的一些错误会出现,但是它只需要在头中的几个条目就可以编译。
windows.h的内容(我把它放在项目根目录中)
typedef intptr_t;
#define INVALID_HANDLE_VALUE -1这将使项目能够成功构建。
https://stackoverflow.com/questions/36824434
复制相似问题