• ベストアンサー

lccコマンドについて

自分でゲームボーイのソフトを作成してみようと思い、GBDKをインストールし さあまずはHello wordプログラムから作って みるかと思って作成し、いざコンパイルしてみたら次のようなメッセージが出たのですが・・・ C:\Game boy\SDK\gbz80-gb\2-1-5\bin\cpp: No such file or directory 調べてみたところ、環境変数設定もしっかり出来ていて、どこが悪いのかさっぱりわかりません。 どうしてでしょうかね・・・?(´・ω・`)

質問者が選んだベストアンサー

  • ベストアンサー
  • jjk65536
  • ベストアンサー率59% (66/111)
回答No.2

ファイルやディレクトリがありませんというエラーですが、ここで指摘されている C:\Game boy\SDK\gbz80-gb\2-1-5\bin\cpp というディレクトリかファイルは存在していますか? たとえばエクスプローラを起動してその場所を開いたとき、ちゃんとファイルは存在していますか? 絶対パスなので、環境変数はエラーと関係なさそうです。 ブログ記事と異なるバージョンを使ったため、パス中の2-1-5の部分が 間違っているとか、よくあるミスです。 調べてみてください。

pocket0173
質問者

お礼

回答ありがとうございます。 どうやら原因はGame boyというフォルダを作成したからみたいです。 Cドライブ直下にSDKフォルダをコピーしたところ、なぜか普通にコンパイルできました。

全文を見る
すると、全ての回答が全文表示されます。

その他の回答 (1)

  • wormhole
  • ベストアンサー率28% (1622/5659)
回答No.1

どのような設定されたのかも どのようにコンパイルしようとしたのかも 他の方にはわかりませんから 回答のしようがないと思いますが。

全文を見る
すると、全ての回答が全文表示されます。

関連するQ&A

  • ./configureの次にmakeが出来ません

    ubuntu8.04を使っているLinux初心者です。 rcssbase-11.1.0.tar.gz というものをインストールしたいのですが、makeを行うと、'all'に対して行うべき事はありませんと出ます。 ./configureの段階でうまくいっていないのだとは思うのですが、何をどう改善すればいいのか分かりません。実行メッセージのどの部分を載せたらいいのか分からないので、怪しいかなと思う所(noやerrorが出た所)を載せます。 .......... checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes checking dl.h usability... no checking dl.h presence... no checking for dl.h... no checking sys/dl.h usability... no checking sys/dl.h presence... no checking for sys/dl.h... no checking dld.h usability... no checking dld.h presence... no checking for dld.h... no checking mach-o/dyld.h usability... no checking mach-o/dyld.h presence... no checking for mach-o/dyld.h... no checking ltdl.h usability... no checking ltdl.h presence... no checking for ltdl.h... no checking for cvs... no config.status: creating config.h config.status: config.h is unchanged .......... あと、config.logを表示させたらこんな表示がありました。 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown configure:8221: result: no /usr/bin/ld: cannot find -lsocket configure:8916: result: no /usr/bin/ld: cannot find -lposix4 ac_cv_func_shl_load=no ac_cv_header_dl_h=no ac_cv_header_dld_h=no ac_cv_header_errno_h=yes ac_cv_header_ltdl_h=no conftest.c:10:28: error: ac_nonexistent.h: No such file or directory conftest.c:10:28: error: ac_nonexistent.h: No such file or directory conftest.cpp:11:28: error: ac_nonexistent.h: No such file or directory conftest.cpp:11:28: error: ac_nonexistent.h: No such file or directory conftest.cpp:69: error: '_Bool' does not name a type conftest.cpp:73: error: 'ac__type_new_' was not declared in this scope conftest.cpp:73: error: expected primary-expression before ')' token conftest.cpp:73: error: expected `)' before numeric constant conftest.cpp:75: error: 'ac__type_new_' was not declared in this scope conftest.cpp:106:16: error: dl.h: No such file or directory conftest.cpp:73:16: error: dl.h: No such file or directory conftest.cpp:106:20: error: sys/dl.h: No such file or directory conftest.cpp:73:20: error: sys/dl.h: No such file or directory conftest.cpp:106:17: error: dld.h: No such file or directory conftest.cpp:73:17: error: dld.h: No such file or directory conftest.cpp:106:25: error: mach-o/dyld.h: No such file or directory conftest.cpp:73:25: error: mach-o/dyld.h: No such file or directory conftest.cpp:115:18: error: ltdl.h: No such file or directory conftest.cpp:82:18: error: ltdl.h: No such file or directory conftest.cpp:82:28: error: ac_nonexistent.h: No such file or directory ........ (dl.h...noなどの表示がありますが、これは何ですか?(すみません、検索してみてもよく分からなかったので)noというのは絶対にあってはいけないのですか?) 情報が足りなすぎるかもしれませんが、よろしくお願いします。

  • コンパイル

    ubuntuで、 gcc (ファイル名).c とコンパイルをしようとすると、 error: stdio.h: No such file or directory error: math.h: No such file or directory が出てきてしまいます。どうやってコンパイルしたらよいのでしょう?初心者ですのでよろしくお願いします。

  • 本に従ってビルドを進めていったつもりが・・失敗;

    ------ ビルド開始: プロジェクト: D3DFWsamplw, 構成: Debug Win32 ------ コンパイルしています... Renderer.cpp c:\dx90sdk\include\d3d9.h(33) : fatal error C1083: include ファイルを開けません。'objbase.h': No such file or directory Scene.cpp c:\documents and settings\owner\my documents\visual studio 2005\projects\d3dfwsamplw\d3dfwsamplw\scene.cpp(6) : fatal error C1083: include ファイルを開けません。'windows.h': No such file or directory Window.cpp c:\documents and settings\owner\my documents\visual studio 2005\projects\d3dfwsamplw\d3dfwsamplw\window.cpp(8) : fatal error C1083: include ファイルを開けません。'windows.h': No such file or directory コードを生成中... ビルドログは "file://c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\D3DFWsamplw\D3DFWsamplw\Debug\BuildLog.htm" に保存されました。 D3DFWsamplw - エラー 3、警告 0 ========== ビルド: 0 正常終了、1 失敗、0 更新、0 スキップ ========== とでてしまいます、これだけみてなにが悪いのか誰か説明できるひといませんか?初心者なんですいません;

  • CentOSにJavaの実行環境を構築する方法

    初めまして、CentOS5.8サーバでJavaの実行環境を作ろうとしていますが、上手くいかず困っております。 参考にしたのは下記のサイトです。 http://d.hatena.ne.jp/sardine/20110602 # wget -O jdk-7u4-linux-i586-rpm.bin http://download.oracle.com/otn-pub/java/jdk/7u4-b20/jdk-7u4-linux-i586.rpm と実行したところ、jdk-7u4-linux-i586-rpm.bin がダウンロードされています。 大きさは5kbyteくらいでした。 # chmod a+x jdk-7u4-linux-i586-rpm.bin を実行して #./jdk-7u4-linux-i586-rpm.bin を実行したところ下記の様に表示されるのですが、何がまずいのでしょうか。 どなたかご指摘お願いいたします。 また、参考になるURL等ありましたら教えて頂きたいと思います。よろしくお願いいたします。 ---------------------------------------------------------- ./jdk-7u4-linux-i586-rpm.bin: line 1: html: No such file or directory ./jdk-7u4-linux-i586-rpm.bin: line 2: head: No such file or directory ./jdk-7u4-linux-i586-rpm.bin: line 3: title: No such file or directory ./jdk-7u4-linux-i586-rpm.bin: line 4: META: No such file or directory ./jdk-7u4-linux-i586-rpm.bin: line 5: link: No such file or directory ./jdk-7u4-linux-i586-rpm.bin: line 6: link: No such file or directory : command not found6-rpm.bin: line 7: ./jdk-7u4-linux-i586-rpm.bin: line 8: body: No such file or directory ./jdk-7u4-linux-i586-rpm.bin: line 9: div: No such file or directory ./jdk-7u4-linux-i586-rpm.bin: line 10: table: No such file or directory ./jdk-7u4-linux-i586-rpm.bin: line 11: tr: No such file or directory ./jdk-7u4-linux-i586-rpm.bin: line 12: syntax error near unexpected token `<' ./jdk-7u4-linux-i586-rpm.bin: line 12: ` <td rowspan="2" valign="middle" nowrap><a href="http://www.oracle.com"><img src="/errors/us/assets/oralogo-small.g'f" width="154" height="19" hspace="10" vspace="25" border="0" ></a></td>

  • ヘッダーファイル『windows.h』について

    C言語のサンプルプログラムでよく#include <windows.h>というものを 見かけるのですが、実際コンパイルしようとすると : fatal error C1083: include ファイルを開けません。'windows.h' : No such file or directory というエラーメッセージがでてしまいます。 コンパイルはMicrosoft .NET Framework SDK を入れて使っているのですが、サポートしていないと思われます。 どうにかしてこの環境で『windows.h』もしくはそれと同様な事ができる方法はありませんでしょうか? 宜しくお願いします。

  • [初心者]rubyでgemが使えません

    ruby1.9.2をインストールをしたあと、rubygems1.5.0をダウンロードして ruby setup.rb でインストールしたのですが、 gem -v をしても反応がありません。No such file or directoryといわれてしまいます。環境変数をいろいろと変えてみましたがやはりダメでした。windowsだとやり方が違うのでしょうか。 検索しても答えが見つからなかったので質問させていただきました。初心者ですがよろしくお願い致します。 [os] windows xp [ruby] ruby 1.9.2p136 (2010-12-25) [i386-mingw32] [エラーメッセージ] C:\Ruby192\bin\ruby.exe: No such file or directory -- /cygdrive/c/Ruby192/bin/gem (LoadError)

    • ベストアンサー
    • Ruby
  • CentOSでアップデート中に再起動してエラー発生

    現在CentOS5を使用しているのですがアップデート途中に再起動をしてしまった為、起動中にエラーが発生して止まってしまいます。 復旧方法があれば教えて頂きたいのですが・・・エラーの内容は bash: dircolors: command not found bash: /usr/bin/id: No such file or directory bash: [: =: unary operator expected bash: /usr/bin/id: No such file or directory bash: [: =: unary operator expected bash: /usr/bin/pkg-config: No such file or directory と表示されます、宜しく御願いします。

  • プログラミング方法

    先日javaのプログラミングをはじめました。 本を読みながらやっているのですが、コンパイルの段階でエラーがでてしまいます。自分がやった手順で何か間違っているところがあったら おしえてください。 1.CドライブにYJSampleという名前のディレクトリをつくる そのなかに01というディレクトリをつくる 2.環境変数のPATHの項を変数。SDKを保存した場所\binを入力 3.ソースファイルを作成。ここで作成したファイルの名前を Sample1.javaで登録したのですがメモ帳で開いてみるとSample1としか指示されません。 4.コマンド プロンプト起動。cd c:\YJSample1.java を入力して実行をしたのですが エラー:Sample1.javaを読み込めません エラー一個とでてしまいます。 エラーが出ないようにするにはどうすればいいのでしょうか? 環境変数が設定できてないとおもったのですが、SDKを保存した場所\binを入力すればいいんですよね?

    • ベストアンサー
    • Java
  • DirectXのエフェクトをやりたくて・・・

    VisualStudio2005 ExpressEditionを用いてプログラミングの初歩をやろうとしているんですが・・DirectXSDKをつかったエフェクトを作るときなぜかインクルードファイルとライブラリファイルのところにのところにDirectXSDKのファイルを追加しただけではエラーが出てしまいます。パスもしっかりとしたはずなんですがなんででしょうか?過去ログ見てもわかりませんでした; ------ ビルド開始: プロジェクト: D3DFWsamplw, 構成: Debug Win32 ------ コンパイルしています... Renderer.cpp c:\dx90sdk\include\d3d9.h(33) : fatal error C1083: include ファイルを開けません。'objbase.h': No such file or directory Scene.cpp c:\documents and settings\owner\my documents\visual studio 2005\projects\d3dfwsamplw\d3dfwsamplw\scene.cpp(6) : fatal error C1083: include ファイルを開けません。'windows.h': No such file or directory Window.cpp c:\documents and settings\owner\my documents\visual studio 2005\projects\d3dfwsamplw\d3dfwsamplw\window.cpp(8) : fatal error C1083: include ファイルを開けません。'windows.h': No such file or directory コードを生成中... ビルドログは "file://c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\D3DFWsamplw\D3DFWsamplw\Debug\BuildLog.htm" に保存されました。 D3DFWsamplw - エラー 3、警告 0

  • Fedora Core1でJAVA開発環境が作成できない

    先日、PCにlinux(Fedora Core1)をインストールし、J2SDK(V 1.3.1_09)をダウンロードし、インストールしたのですが、開発環境が作成できません。 java や javac コマンドを打つと以下のようなエラーメッセージが表示されます。 /usr/local/prgm/jdk1.3.1_09/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory PATHは一応通してあって /usr/local/prgm/J2SDK1.3.1/bin (*/usr/local/prgmがインストールを行った場所です) に設定しています。恐らくほかの環境変数が足りないんだと思うのですが何が足りなんでしょうか? それとも別の理由があるのでしょうか?