本文共 241 字,大约阅读时间需要 1 分钟。
动态库 的 Makefile.am 编写
sotest_SOURCES=sotest.c 〔定义 'hello' 这个执行档所需要的原始文件。Eg: hello_SOURCES= hello.c main.c hello.h 如果我们定义多个执行文件,则对每个执行文件都要定义相对的 filename_SOURCES。〕 sotest_LDFLAGS=-L/usr/lib/mylib sotest_LDADD=–l/my 〔指定需要连接的动态库地址〕 自己的一点总结就贡献给你了!转载地址:http://qpcdi.baihongyu.com/