Windows でサポートされる C ライブラリ

各 API 設定から生成されるライブラリ ファイルの名前は、共通の基本名 (g1client) に固有の接尾文字と、場合によってはさらに接頭文字 (静的ライブラリであれば "lib") が付加されたフォーマットになります。ライブラリの接尾文字は、次の意味を持ちます。

<lib>g1client<S><U><D>.<lib|dll>

  • lib — 静的ライブラリ
  • dll — 動的 (共有) ライブラリ
  • S — 単一スレッド ビルド。この文字がないのは、マルチスレッド ビルドであることを意味します。
  • U — UNICODE バージョン ビルド。この文字がないのは、ASCII ビルドであることを意味します。
  • D — デバッグ用ビルド。この文字がないのは、最適化されたリリース用ビルドであることを意味します。

UNICODE バージョンを有効にするには、LIB_UNICODE マクロ定義がプロジェクトに存在する必要があります。

静的 C/C++ API ライブラリ UNICODE バージョンを使うには、U_STATIC_IMPLEMENTATION をプロジェクトで定義する必要があります。

動的バージョンを使うには、G1CLIENT_DLL をプロジェクトで定義する必要があります。

また、"auto_link.h" というファイルをヘッダー ファイル ディレクトリに配置します。このファイルは、プロジェクト設定に従ってすべての対応するライブラリに自動的にリンクします。

Windows で 64 ビット ライブラリを呼び出すには、VER_64 をプロジェクトで定義する必要があります。

静的ライブラリ

表 1. 単一スレッド/リリース

ASCII

Unicode

G1

libg1client_S.lib

libg1client_SU.lib

openssl

otlibeay64.lib otlibssl64.lib

otlibeay64.lib otlibssl64.lib

opentop

opentop.lib

opentopw.lib

icu

libicuuc.lib libicudt.lib libicuin.lib libicuio.lib

Poco

PocoXML64.lib

PocoXML64w.lib

表 2. 単一スレッド/デバッグ

ASCII

Unicode

G1

libg1client_SD.lib

libg1client_SUD.lib

openssl

otlibeay64d.lib otlibssl64d.lib

otlibeay64d.lib otlibssl64d.lib

opentop

opentopd.lib

opentopwd.lib

icu

libicuucd.lib libicudtd.lib libicuind.lib libicuiod.lib

Poco

PocoXML64d.lib

PocoXML64wd.lib

表 3. マルチ/リリース (マルチスレッド CRT 使用)

ASCII

Unicode

G1

libg1client.lib

libg1client_U.lib

openssl

otlibeay64mt.lib otlibssl64mt.lib

otlibeay64mt.lib otlibssl64mt.lib

opentop

opentopmt.lib

opentopmtw.lib

icu

libicuucmt.lib libicudtmt.lib libicuinmt.lib libicuiomt.lib

Poco

PocoXMLmt64.lib

PocoXML64mtw.lib

表 4. マルチ/デバッグ (マルチスレッド CRT 使用)

ASCII

Unicode

G1

libg1client_D.lib

libg1client_UD.lib

openssl

otlibeay64mtd.lib otlibssl64mtd.lib

otlibeay64mtd.lib otlibssl64mtd.lib

opentop

opentopmtd.lib

opentopmtwd.lib

icu

libicuucmtd.lib libicudtmtd.lib libicuinmtd.lib libicuiomtd.lib

Poco

PocoXMLmt64d.lib

PocoXML64mtwd.lib

動的ライブラリ

表 5. マルチ/リリース (マルチスレッド CRT 使用)

ASCII

Unicode

G1

g1client.dll

g1client_U.dll

openssl

otlibeay64mts.dll otlibssl64mts.dll

otlibeay64mts.dll otlibssl64mts.dll

opentop

opentopmts.dll

opentopmtws.dll

icu

icuuc64.dll icuio64.dll icuin64.dll icudt64.dll

Poco

PocoXML64mts.dll

PocoXML64mtws.dll

表 6. マルチ/デバッグ (マルチスレッド CRT 使用)

ASCII

Unicode

G1

g1client_D.dll

g1client_UD.dll

openssl

otlibeay64mtds.dll otlibssl64mtds.dll

otlibeay64mtds.dll otlibssl64mtds.dll

opentop

opentopmtds.dll

opentopmtwds.dll

icu

icuuc64d.dll icuio64d.dll icuin64d.dll icudt64d.dll

Poco

PocoXML64mtds.dll

PocoXML64mtwds.dll