为什么 boost windows 和 linux 的下载量不同?
Why does boost have different downloads for windows and linux?
这可能是一个愚蠢的问题,但如果 boost 是 cross-platform,为什么每个平台都需要自己的版本?
如果我想将 boost 的一个 (header-only) 子集打包为我的项目的依赖项,我是否需要同时包括 windows 和 linux 版本?
行尾。
Windows IDE 通常更喜欢以 CR+LF (windows) 行结尾编辑所有文件。
所有其他平台使用 LF (Unix) 样式行结束。
.zip file
The .zip format is widely supported by both free decoders and
commercial compress/archive utilities. If you don't already have a
.zip file decoder, download one from the Info-ZIP web site, which
supplies versions for many operating systems. Text file line endings
in the .zip file are as supplied by each library developer. This
works fine for Windows, but not for Unix/Linux. The .tar.gz and
.tar.bz2 files supply Unix/Linux friendly line endings.
.tar.gz and .tar.bz2 files
The .tar.gz format is widely supported on Unix/Linux platforms. Some
Windows compress/archive utilities can read the format as well.
Because the gzip format compresses the archive as a single file rather
than compressing each file individually, the .tar.gz file is smaller
that the .zip file.
The .tar.bz2 format is becoming widely available on Unix/Linux
platforms and is built into many tar utilities. This format differs
for the .tar.gz format in the compression used, which is considerably
better and therefore creates smaller files.
Text file line endings in the .tar.gz and .tar.bz2 files have been
converted to newlines for ease of use on Unix/Linux platforms.
这可能是一个愚蠢的问题,但如果 boost 是 cross-platform,为什么每个平台都需要自己的版本?
如果我想将 boost 的一个 (header-only) 子集打包为我的项目的依赖项,我是否需要同时包括 windows 和 linux 版本?
行尾。
Windows IDE 通常更喜欢以 CR+LF (windows) 行结尾编辑所有文件。
所有其他平台使用 LF (Unix) 样式行结束。
.zip file
The .zip format is widely supported by both free decoders and commercial compress/archive utilities. If you don't already have a .zip file decoder, download one from the Info-ZIP web site, which supplies versions for many operating systems. Text file line endings in the .zip file are as supplied by each library developer. This works fine for Windows, but not for Unix/Linux. The .tar.gz and .tar.bz2 files supply Unix/Linux friendly line endings.
.tar.gz and .tar.bz2 files
The .tar.gz format is widely supported on Unix/Linux platforms. Some Windows compress/archive utilities can read the format as well. Because the gzip format compresses the archive as a single file rather than compressing each file individually, the .tar.gz file is smaller that the .zip file.
The .tar.bz2 format is becoming widely available on Unix/Linux platforms and is built into many tar utilities. This format differs for the .tar.gz format in the compression used, which is considerably better and therefore creates smaller files.
Text file line endings in the .tar.gz and .tar.bz2 files have been converted to newlines for ease of use on Unix/Linux platforms.