Ubuntu/C言語環境の構築(Ubuntu8.04)
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#navi(../)
* Ubuntu8.04でCソースのコンパイルができるようにする [#kf2...
定番のHello Worldソースを作りコンパイルしようとしたところ...
#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)
* コンパイルを可能にするための手順
build-essentialをインストールすれば、Cソースをコンパイル...
-geditでhello.cを作成
#ref(gedit-hello_c.jpg)
-コンパイル結果
$ gcc hello.c
hello.c:1:19: error: stdio.h: No such file or directory
hello.c: In function ‘main’:
hello.c:5: 警告: incompatible implicit declaration of bu...
#ref(gcc-error.jpg)
** build-essentialパッケージをインストールすれば解決 [#e3...
&color(red){build-essential};をインストールすればコンパイ...
-Synapticを起動しbuild-essentialをインストール
#ref(synaptic-build-essential.jpg)
-インストールされるパッケージ
#ref(build-essential-install-pkgs.jpg)
**再度コンパイルし実行 [#b41825b8]
パッケージインストール後、無事コンパイルができました。 :)~
-コンパイルによって作成されたa.outを実行した結果
#ref(gcc-success.jpg)
#htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)
#br
終了行:
#navi(../)
* Ubuntu8.04でCソースのコンパイルができるようにする [#kf2...
定番のHello Worldソースを作りコンパイルしようとしたところ...
#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)
* コンパイルを可能にするための手順
build-essentialをインストールすれば、Cソースをコンパイル...
-geditでhello.cを作成
#ref(gedit-hello_c.jpg)
-コンパイル結果
$ gcc hello.c
hello.c:1:19: error: stdio.h: No such file or directory
hello.c: In function ‘main’:
hello.c:5: 警告: incompatible implicit declaration of bu...
#ref(gcc-error.jpg)
** build-essentialパッケージをインストールすれば解決 [#e3...
&color(red){build-essential};をインストールすればコンパイ...
-Synapticを起動しbuild-essentialをインストール
#ref(synaptic-build-essential.jpg)
-インストールされるパッケージ
#ref(build-essential-install-pkgs.jpg)
**再度コンパイルし実行 [#b41825b8]
パッケージインストール後、無事コンパイルができました。 :)~
-コンパイルによって作成されたa.outを実行した結果
#ref(gcc-success.jpg)
#htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)
#br
ページ名: