FreeBASIC マニュアルのトップに戻る

FreeBASIC DevGccToolchainChoice

目次→FreeBASIC のハッキング→FreeBASIC でのハッキングのための情報GCC toolchain choice←オリジナル・サイト

GCC toolchain 選択



FBは、GCC toolchains と、対応するライブラリに基づきます。
しかし、プラットホームに対して唯一の GCC toolchain ではなく、しばしば複数の、少し違うものが存在します。
FB は、通常、それらの全てどれでもを使うことができます。しかし、FB をビルドして、利用するために選ばれた toolchain に依存する違いが起こりえます。
ここでは、我々は、FB をビルドして そして/または FB をリリースするときに、考慮すべき問題のいくつかを文書化します。

Windows (MinGW)

MinGW toolchains:


Notes:


DOS (DJGPP)

FB needs the DJGPP 2.04 beta runtime (does DJGPP 2.03 not work?). Either way, this version of DJGPP is extremely old. On the other hand, there have not been any more recent DJGPP releases, and updates can only be found in DJGPP's CVS. The recommendation is to only use DJGPP CVS if really needed though.

Linux

GNU/Linux distros usually provide native gcc + glibc toolchains out-of-the-box, and FB is intended to work with them out-of-the-box.

Executables (such as fbc itself) produced on one GNU/Linux distro are not necessarily portable to other GNU/Linux distros, due to differences in system libraries and/or versions, such as glibc version differences, or ncurses/libtinfo differences. The most common problem with fbc is mismatching glibc versions, i.e. the fbc binary is run on a system with older glibc than the one it was built on, and some form of "glibc too old" error is encountered. The ncurses library is not always exactly the same either, as shown by the "`ospeed' has different size, consider re-linking" warnings when running fbc. Also, some distros have separated libncurses and libtinfo, some just have libncurses, which can cause errors due to the libtinfo shared library not being found.

In theory, it is possible to use static linking to avoid the problems with shared libraries:


See also:

FreeBASIC の開発者用情報 に戻る
目次に戻る
ページ歴史:2016-03-12 13:29:39
日本語翻訳:WATANABE Makoto、原文著作者:DkLwikki

ホームページのトップに戻る

表示-非営利-継承