トップページ > 過去ログ > 記事閲覧
メイクがうまくいきません; 2
名前:無名 日時: 2008/05/20 10:42

朝早くに一度書き込みした無名です。どうにも解決できず再び質問します; > C:\borland\bcc55\Bin\make.exe -fDebug\game.mak TARGET MAKE Version 5.2 Copyright (c) 1987, 2000 Borland bcc32 -WC -3 -Od -w- -AT -pc -H- -k -b -v -y -DDEBUG -nDebug -c E:\game\test\game.cpp\file.cpp Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland E:\game\test\game.cpp\file.cpp: Error E2209 E:\game\test\game.cpp\DxLib.h 35: Unable to open include file 'windows.h' Error E2209 E:\game\test\game.cpp\DxLib.h 36: Unable to open include file 'stdio.h' Error E2209 E:\game\test\game.cpp\DxDirectX.h 807: Unable to open include file 'windows.h' Error E2209 E:\game\test\game.cpp\DxDirectX.h 808: Unable to open include file 'mmreg.h' Error E2209 E:\game\test\game.cpp\DxDirectX.h 809: Unable to open include file 'unknwn.h' Error E2303 E:\game\test\game.cpp\DxDirectX.h 848: Type name expected Error E2139 E:\game\test\game.cpp\DxDirectX.h 848: Declaration missing ; Error E2303 E:\game\test\game.cpp\DxDirectX.h 849: Type name expected Error E2238 E:\game\test\game.cpp\DxDirectX.h 849: Multiple declaration for 'tagD_DSCAPS::DWORD' Error E2344 E:\game\test\game.cpp\DxDirectX.h 848: Earlier declaration of 'tagD_DSCAPS::DWORD' Error E2139 E:\game\test\game.cpp\DxDirectX.h 849: Declaration missing ; Error E2303 E:\game\test\game.cpp\DxDirectX.h 850: Type name expected Error E2238 E:\game\test\game.cpp\DxDirectX.h 850: Multiple declaration for 'tagD_DSCAPS::DWORD' Error E2344 E:\game\test\game.cpp\DxDirectX.h 849: Earlier declaration of 'tagD_DSCAPS::DWORD' Error E2139 E:\game\test\game.cpp\DxDirectX.h 850: Declaration missing ; Error E2303 E:\game\test\game.cpp\DxDirectX.h 851: Type name expected Error E2238 E:\game\test\game.cpp\DxDirectX.h 851: Multiple declaration for 'tagD_DSCAPS::DWORD' Error E2344 E:\game\test\game.cpp\DxDirectX.h 850: Earlier declaration of 'tagD_DSCAPS::DWORD' Error E2139 E:\game\test\game.cpp\DxDirectX.h 851: Declaration missing ; Error E2303 E:\game\test\game.cpp\DxDirectX.h 852: Type name expected Error E2238 E:\game\test\game.cpp\DxDirectX.h 852: Multiple declaration for 'tagD_DSCAPS::DWORD' Error E2344 E:\game\test\game.cpp\DxDirectX.h 851: Earlier declaration of 'tagD_DSCAPS::DWORD' Error E2139 E:\game\test\game.cpp\DxDirectX.h 852: Declaration missing ; Error E2303 E:\game\test\game.cpp\DxDirectX.h 853: Type name expected Error E2238 E:\game\test\game.cpp\DxDirectX.h 853: Multiple declaration for 'tagD_DSCAPS::DWORD' Error E2228 E:\game\test\game.cpp\DxDirectX.h 853: Too many error or warning messages *** 26 errors in Compile *** ** error 1 ** deleting Debug\file.obj Make End !! (Elapsed time 0:00.265) と表示され相変わらず進みません。 これはどこが間違ってるんでしょうか;

Page: 1 |

Re: メイクがうまくいきません; 2 ( No.1 )
名前:Will 日時:2008/05/20 15:44

コンパイラの設定が間違っているように思います。 BorlandC++ Compiler 5.5  によるDXライブラリの使い方 3.BorlandC++ Compiler 5.5 のセッティングをする を見直して間違いがないか確認してください。 bcc32.cfgとilink32.cfg は解説の通り作られましたか?
Re: メイクがうまくいきません; 2 ( No.2 )
名前:無名 日時:2008/05/20 17:22

cfgの記入にミスがあったようで、コピペして作り直したらこのエラーはきえたのですが。 > C:\borland\bcc55\Bin\make.exe -fDebug\game.mak -B TARGET MAKE Version 5.2 Copyright (c) 1987, 2000 Borland bcc32 -W -3 -Od -w- -AT -pc -H- -k -b -v -y -DDEBUG -nDebug -c "C:\Documents and Settings\豊\デスクトップ\game\game\test.cpp" Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland C:\Documents and Settings\豊\デスクトップ\game\game\test.cpp: Error E2141 C:\Documents and Settings\豊\デスクトップ\game\game\test.cpp 6: Declaration syntax error *** 1 errors in Compile *** ** error 1 ** deleting Debug\test.obj Make End !! (Elapsed time 0:00.781) と今度は表示されました。 なんだかもう頭がごっちゃになりそうです(汗
Re: メイクがうまくいきません; 2 ( No.3 )
名前:Will 日時:2008/05/20 17:40

\豊\デスクトップ\ ここがダメです。 BCCとか海外製のフリーツールはほとんど日本語に対応していません。 ファイルパスに日本語が含まれているとコンパイルに失敗します。 gameフォルダ以下はファイルパスに日本語が含まれないところにしてください。(c:\直下とか) あと、BCCはどうだったか忘れたけど「Documents and Settings」のように空白含んでいるのもダメなやつもある。
Re: メイクがうまくいきません; 2 ( No.4 )
名前:無名 日時:2008/05/20 17:49

そうだったんですか(汗 一応c:\直下に入れて試してみたんですが、あまり変化はないみたいで・・・。 > C:\borland\bcc55\Bin\make.exe -fDebug\game.mak TARGET MAKE Version 5.2 Copyright (c) 1987, 2000 Borland bcc32 -W -3 -Od -w- -AT -pc -H- -k -b -v -y -DDEBUG -nDebug -c C:\project\test.cpp Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland C:\project\test.cpp: Error E2141 C:\project\test.cpp 6: Declaration syntax error *** 1 errors in Compile *** ** error 1 ** deleting Debug\test.obj Make End !! (Elapsed time 0:00.593) と表示されました。ファイルパスに日本語が含まれないところ・・・にはありますよね?違っていたら申し訳ないです
Re: メイクがうまくいきません; 2 ( No.5 )
名前:Will 日時:2008/05/20 18:12

ごめんなさい。 エラー内容よく見てなくて思い込みで書いてしまったorz > Error E2141 C:\project\test.cpp 6: Declaration syntax error test.cppの6行目がなんか間違っているみたいです。 E2141は宣言の構文エラーなので、ソース見てみないとわかりません。
Re: メイクがうまくいきません; 2 ( No.6 )
名前:無名 日時:2008/05/20 18:15

宣言の構文エラーであってたみたいです! 無事にメイク成功しました。本当にありがとうございます。半角と全角が混合していたみたいでして、もう一度打ち直してみたらすぐ動きました。 こんな初心者にまじめに答えてくださって本当に助かりました。

Page: 1 |