- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我将在 Windows 中使用 NetCDF,我认为它必须使用 MinGW 编译,因为我的主程序和所有其他库已经使用 MinGW 编译。
但是当我使用 MinGW(gcc 版本 4.6.2)时。我收到一些错误消息:
Making all in liblib
make[2]: Entering directory `/c/Users/ylylyl/Documents/CB/NETCDF/netcdf-4.2.1.1/liblib'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DDLL_NETCDF -DDLL_EXPORT -g -O2 -MT libnetcdf_la-stub.lo -MD -MP -MF .deps/libnetcdf_la-stub.Tpo -c -o libnetcdf_la-stub.lo `test -f 'stub.c' ||echo './'`stub.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DDLL_NETCDF -DDLL_EXPORT -g -O2 -MT libnetcdf_la-stub.lo -MD -MP -MF .deps/libnetcdf_la-stub.Tpo -c stub.c -DDLL_EXPORT -DPIC -o .libs/libnetcdf_la-stub.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DDLL_NETCDF -DDLL_EXPORT -g -O2 -MT libnetcdf_la-stub.lo -MD -MP -MF .deps/libnetcdf_la-stub.Tpo -c stub.c -o libnetcdf_la-stub.o >/dev/null 2>&1
mv -f .deps/libnetcdf_la-stub.Tpo .deps/libnetcdf_la-stub.Plo
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -version-info 9:0:2 -no-undefined -Wl,--output-def,netcdfdll.def -o libnetcdf.la -rpath /usr/local/lib libnetcdf_la-stub.lo ../libdispatch/libnetcdf2.la ../libdispatch/libdispatch.la ../libsrc/libnetcdf3.la -lm
libtool: link: gcc -shared .libs/libnetcdf_la-stub.o -Wl,--whole-archive ../libdispatch/.libs/libnetcdf2.a ../libdispatch/.libs/libdispatch.a ../libsrc/.libs/libnetcdf3.a -Wl,--no-whole-archive -O2 -Wl,--output-def -Wl,netcdfdll.def -o .libs/libnetcdf-7.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libnetcdf.dll.a
Creating library file: .libs/libnetcdf.dll.a
libtool: link: (cd .libs/libnetcdf.lax/libnetcdf2.a && ar x "/c/Users/ylylyl/Documents/CB/NETCDF/netcdf-4.2.1.1/liblib/../libdispatch/.libs/libnetcdf2.a")
libtool: link: object name conflicts in archive: .libs/libnetcdf.lax/libnetcdf2.a//c/Users/ylylyl/Documents/CB/NETCDF/netcdf-4.2.1.1/liblib/../libdispatch/.libs/libnetcdf2.a
make[2]: *** [libnetcdf.la] Error 1
make[2]: Leaving directory `/c/Users/ylylyl/Documents/CB/NETCDF/netcdf-4.2.1.1/liblib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/Users/ylylyl/Documents/CB/NETCDF/netcdf-4.2.1.1'
make: *** [all] Error 2
最佳答案
问题是“Windows 的路径列在 PATH 中 msys 的 bin 之前。因此,不会调用与 Windows 的内置实用程序同名的 unix 实用程序。而是调用 Windows 的。” (http://forum.world.st/The-old-quot-object-name-conflicts-in-archive-quot-problem-on-Windows-MSYS-MinGW-td3439428.html)。
将 msys 二进制文件的路径放在 PATH 的开头应该会有所帮助。
关于mingw - libtool:存档中的对象名称冲突(NETCDF + MinGW),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12060186/
我试图从我的 mac 上的源代码构建 libxml2。 所以我使用 mac 端口安装了 autoconf libtool 和 automake autoconf 和 automake 似乎按预期工作正
有人可以告诉我 libtool 的 .lai 文件的用途吗? 另请参阅What are libtool's .la file for? 最佳答案 .lai 是将作为 .la 文件安装的文件的扩展名。换
我有一个使用 autotools 设置的项目来构建一个 C++ 库,包括 Python 与 Boost.Python 的绑定(bind)。我的系统上有一个 Boost.Python 二进制文件,我想链
我正在尝试automake OrientDb C++ 库,但遇到了一些错误。 Makefile.am:10: error: Libtool library used but 'LIBTOOL' is
这个问题在这里已经有了答案: Libtool library used but `LIBTOOL' is undefined? (4 个回答) 4年前关闭。 我正在尝试按照本教程在 centos 上安
我想使用 Make install 命令,我已经安装了所有要求,如 yasm、nasm、curl、ant、rsync 和 autotools:autoconf、automake、aclocal、pkg
我正在尝试将 libcsv 转换为使用 libtool,这样我就可以在 mac os x 上使用它而无需破坏 makefile。当我尝试运行从工具生成的 makefile 时,出现以下错误: ~/
我正在尝试编译和安装 phpredis 存储库的 php7 分支,但出现以下错误: /bin/sh /root/phpredis/libtool --mode=compile cc
我尝试在 Centos 5.11(内核 2.6.18-409.el5)上安装 USBIP,但是当我输入“make”时总是出现这个错误: make[1]: Entering directory "/ro
我正在运行 Linux,Ubuntu 10.04。 这不是我第一次尝试使用自动工具。我做了很多研究并遵循了很多教程:这是我想做的,我尝试过的以及我面临的问题。 目标 : 使用 libtool、auto
我正在尝试为运行 busybox 1.13 的 ARM 嵌入式计算机构建 expat (2.0.0) XML 解析库,在 ./configure 期间,我收到错误: checking if libto
我在 ubuntu lucid 上使用 libtool 2.2.6b,在 ubuntu precision 上使用 libtool 2.4.2。清醒时,我的项目将正确链接。准确地说,它无法链接。这是演
我正在用 C++ 开发一个项目,我希望在其中实现添加插件的功能。编译过程由 Autotools 处理。我设法正确设置了文件结构,主项目和插件都被编译了,但是由于某种原因,在运行 make instal
$ autoreconf -fi src/Makefile.am:43: Libtool library used but `LIBTOOL' is undefined src/Makefile.am
目前我正在将一个成功构建的库与选项链接起来 libtool --mode=link g++ -version-info 1:0 这导致一个名为的库 libxxx.so.1.0.0 到目前为止一切正常。
我已经下载了一些旧项目的源代码。我正在尝试构建它: ./bootstrap && ./configure 它工作正常,但是: make /bin/sh ../libtool --mode=comp
我对 libtool 的东西很陌生。我的问题是构建我的项目需要 libtool 1.5,但我的系统(debian、squeeze)上的默认 libtool 是 2.2。我所做的是从源代码安装 libt
我正在编译使用 libtool 进行编译的 courier-authlib-0.66.1。我修改了所有 Makefile 以删除 --mode=link 行中的 CFLAGS 和 CXXFLAGS,因
我想使用 GNU Autotools 构建一个使用 ZipArchive 的共享库,但我遇到了这个问题: 警告:链接器路径没有库 -lziparch 的真实文件。 我有能力使该库在何时自动链接 你链接
我有一个项目涉及 共享库即:mylib.so (测试)程序使用这些共享库,即:test_mylib 当我尝试运行时 gdb在 test_mylib ,它打印: "test_mylib": not in
我是一名优秀的程序员,十分优秀!