boost编译问题(困惑了好久,至今都没人给出正确答案)

stone_clock 2009-04-12 09:00:56
操作系统:solaris10(x86)
编译器:gcc3.4.6
boost:1.37.0

问题:使用boost_1_37_0/下的configure,编译出来的库都是*.a,没有*.so的库。不知道什么原因。谢谢!!

编译过程:
1. ./configure --prefix=/export/home/test/boost
这一步后,会生成bjam和一个makefile文件
2. make install
执行第一步生成的makefile文件,编译出来的都是*.a的库,没有*.so的库。

之后又自己生成bjam,也设置了variant、link、threading、runtime-link结果还是一样。

...全文
377 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
hjx855 2009-04-13
  • 打赏
  • 举报
回复
那就只有仔细研究一下configure文件了
stone_clock 2009-04-13
  • 打赏
  • 举报
回复
不是我要较真啊,领导说要用这个版本。要全部分析编译规则,那估计不是1天2天的事啊。
帅得不敢出门 2009-04-12
  • 打赏
  • 举报
回复

楼主似乎跟1.37.0 干上了.
有些版本是会出现一些问题
我弄过的一个sqlite的一个版本也是有一些问题.其他版本就没事了.
何必较真
morris88 2009-04-12
  • 打赏
  • 举报
回复
在 fedora 下是可以的。
加 link=shared 不行吗?那就仔细分析编译规则 Makefile 或从网上找找 patch,估计 1.37.0 没有在 solaris 下测试...
stone_clock 2009-04-12
  • 打赏
  • 举报
回复
都没在这种环境下编译过?还是大家都编译过了?

莫非是1.37.0不支持solaris 10(x86), gcc 3.4.6?
今天取了1.38.0编译是好的,之前取的1.33.1也是好的。

1.37.0测试过的编译器
Compilers Tested
Boost's primary test compilers are:

GCC 4.01 on Mac OS X 10.4.10 with both Intel and Power PC
GCC 4.2.4 on Ubuntu Linux 8.10
GCC 4.3.2 on Debian Sid
GCC 4.2.1 on HP-UX Integrity
HP C/aC++ B3910B A.06.17 on HP-UX 64-bit
Visual C++ 9.0 SP1, 8.0, and 7.1 SP1, all on Windows XP
Boost's additional test compilers include:

GCC 4.1.2 on NetBSD
HP aCC on OS: HP-UX B.11.31 U ia64 and HP-UX B.11.31 9000/800 RISC
IBM XL C/C++ Enterprise Edition for AIX, V10.1.0.0, on AIX Version 5.3.0.40
Intel 9.1, 10.0, and 10.1, on Mac OS X 10.4.10
Compaq C++ V7.1-006 for Compaq Tru64 Unix on an OSF1 V5.1 platform.
Sun C++ 5.7, 5.8, 5.9 and GCC 3.4.6 on Sun Solaris 5.10.
On Linux:
GCC 3.4.3, 4.0.1, 4.2.1, 4.2.4, 4.3.2.
GCC 4.3.2 with C++0x extensions.
GCC 4.1.1, 4.2.1 on 64 bit linux.
Intel C++ 8.1, 9.0, 9.1 and 10.0
QLogic PathScale(TM) Compiler Suite: Version 3.1
Sun Compiler 5.9, 5.10 with stdcxx
On Windows:
Several testers using Visual C++ 7.1, 8.0, 9.0 and 10.0
Visual C++ 7.1 with Apache C++ Standard Library 4.2.x branch.
Visual C++ 8.0 with STLport 5.1
Visual C++ 8.0 with STLport 5.1 cross-compiling for Windows Mobile 5.0 Pocket PC SDK (ARMV4I).
Intel 10.1, with Visual C++ 9 backend.
Borland 5.9.3 and 6.10.0
64 bit Intel 10.1, with Visual C++ 9 backend.
64 bit Visual C++ 9.0.
64-bit Visual C++ 9.0 with Apache C++ Standard Library 4.2.x branch.
Comeau C++ 4.3.10.1 beta 2, with Visual C++ 9 backend.

1.38.0测试过的编译器
Compilers Tested
Boost's primary test compilers are:

OS X:
GCC 4.0.1 on Intel OS X 10.4.10, 10.5.2
GCC 4.0.1 on PowerPC OS X 10.4.9
Linux:
GCC 4.3.2 on Ubuntu Linux.
GCC 4.3.3 on Debian "unstable".
HP-UX:
GCC 4.2.1 on HP-UX 64-bit.
HP C/aC++ B3910B A.06.17 on HP-UX 64-bit.
Windows:
Visual C++ 7.1 SP1, 8.0 SP1 and 9.0 SP1 on Windows XP.
Boost's additional test compilers include:

Linux:
GCC 4.1.1, 4.2.1 on 64-bit Red Hat Enterprise Linux
GCC 4.1.2 on 64-bit Redhat Server 5.1
GCC 3.4.3, GCC 4.0.1, GCC 4.2.4 and GCC 4.3.2 on Red Hat Enterprise Linux
GCC 4.3.2 with C++0x extensions
GCC 4.2.1 on OpenSuSE Linux
pgCC 8.0-0a 64-bit target on Red Hat Enterprise Linux
QLogic PathScale(TM) Compiler Suite: Version 3.1 on Red Hat Enterprise Linux
OS X:
Intel 9.1, 10.0 on OS X 10.4.10
Intel 10.1, 11.0 on OS X 10.5.2
Windows:
Visual C++ 9.0 on Vista EE 64-bit.
Visual C++ 9.0 express on Vista 32-bit.
Visual C++ 9.0 on XP 32-bit.
Visual C++ 8.0, using STLport, on XP and Windows Mobile 5.0
Visual C++ 7.1, using STLport, on XP
Borland 5.9.3
Borland 6.1.0
Intel C++ 11.0, with a Visual C++ 9.0 backend, on XP 32-bit.
Intel C++ 11.0, with a Visual C++ 9.0 backend, on Vista 64-bit.
Comeau 4.3.10.1 beta 2, with a Visual C++ 9.0 backend.
GCC 3.4.4, on Cygwin
AIX:
IBM XL C/C++ Enterprise Edition for AIX, V10.1.0.0, on AIX Version 5.3.0.40
FreeBSD:
GCC 4.2.1 on FreeBSD 7.
NetBSD:
GCC 4.1.2 on NetBSD 4.0/i386 and NetBSD 4.0/amd64.
QNX:
QNX Software Development Platform 6.4.0 x86
Solaris:
Sun C++ 5.7, 5.8, 5.9 on Solaris 5.10
GCC 3.4.6 on Solaris 5.10

23,217

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧