-1

現時点では、次のコマンドを使用して Windows コマンド プロンプトを使用して、基本的な「Hello World」プログラムをコンパイルして実行できます。

tcc.test.c 

に続く

test.exe.

ここで、test は、"Hello World"プログラムのコードを含むファイルの名前です。

tccフォルダを c:\ ドライブの上にインストールしました。ライブラリを実行する必要がある別のプログラムがありますが、gslライブラリをどこから、どのように正しくインストールするか、プログラムのコンパイルおよび実行時にライブラリを呼び出す方法がわかりません。

4

1 に答える 1

0

次のドキュメントを参照してください。

これは、とりわけ次のように述べています。

-Bdirtcc 内部ライブラリが見つかるパスを設定します (デフォルトは PREFIX/lib/tcc')。"

また、興味深いのは次のとおりです。

-Idir' Specify an additional include path. Include paths are searched in the order they are specified. System include paths are always searched after. The default system include paths are: /usr/local/include', /usr/include' and PREFIX/lib/tcc/include'. (PREFIX' is usually /usr' or/usr/local')。"

そして最後に:

-Ldir' Specify an additional static library path for the-l' オプション。デフォルトのライブラリ パスは/usr/local/lib',/usr/lib' と `/lib' です。

-lxxx' Link your program with dynamic library libxxx.so or static library libxxx.a. The library is searched in the paths specified by the-L' オプション。

于 2015-10-24T19:03:37.607 に答える