ページ 1 / 1
include ファイルを開けません。'tchar.h':No such file or directoryについて
Posted: 2017年9月16日(土) 22:17
by かきわ
画像のようにgameprog_2012を押してデバック無しで開始を押すと何回しても下記のようなエラーが出てしまいます再ターゲットをしても同じでした

重大度レベル コード 説明 プロジェクト ファイル 行 抑制状態
エラー C1083 include ファイルを開けません。'tchar.h':No such file or directory GameProg_2012 c:\users\user\downloads\gameprog_2012\gameprog_2012\dxlib\dxlib.h 12
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月16日(土) 23:24
by Math
DxLib を最新のVer3.18eに入れ替えられましたか?
Windows10、VS2017の場合
http://dixq.net/forum/viewtopic.php?f=3&t=19562
を参考にしてみてください。
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 12:11
by かきわ

上記の画像のようにDxLibの中身を消してサンプルプログラム実行用フォルダの中身を移し変えても結果は同じでした
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 12:27
by Math
DxLib が フォルダーに見えませんが?
…なにか勘違いされていますね!。(^^;
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 12:29
by Math
あ、自分が勘違いしてました。
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 12:33
by かきわ

一応、現在のDxLibの中身の抜粋です
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 12:34
by Math
ルール
http://dixq.net/board/board.htmlに従って必要事項を記入してください。
(OS,VisualStudioのver. とかです)
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 12:55
by かきわ
すいません
①OS名

②VisualStudioのver
2017です
③ライブラリ名
DXライブラリ Windows版 VisualStudio( C++ )用(Ver3.18e)をダウンロードする(自己解凍形式(約67.1MB))
④コンパイラ名
おそらく下記のエラーにある
>------ ビルド開始: プロジェクト: GameProg_2012, 構成: Debug Win32 ------
1>ターゲット InitializeBuildStatus:
1> "Debug\GameProg_2012.tlog\unsuccessfulbuild" のタッチ タスクを実行しています。
1>ターゲット ClCompile:
1> test.cpp
1> c:\users\user\downloads\gameprog_2012\gameprog_2012\dxlib\dxdatatype.h(14): fatal error C1083: include ファイルを開けません。'stdio.h':No such file or directory
1>プロジェクト "GameProg_2012.vcxproj" 内のターゲット "ClCompile" のビルドが終了しました -- 失敗。
1>
1>プロジェクト "GameProg_2012.vcxproj" のビルドが終了しました -- 失敗。
========== ビルド: 0 正常終了、1 失敗、0 更新不要、0 スキップ ==========
ClCompile:だと思います
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 13:05
by Math
>1> c:\users\user\downloads\gameprog_2012\gameprog_2012\dxlib\dxdatatype.h(14): fatal error C1083: include ファイルを開けませ
>ん。'stdio.h':No such file or directory
stdio.hが開けないとは変ですね?。
ソースコードを提示していただけませんでしょうか。
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 13:15
by Math
No.3の
>上記の画像のようにDxLibの中身を消してサンプルプログラム実行用フォルダの中身を移し変えても結果は同じでした
のこれは書き間違いですよね.(^^;
サンプルプログラム実行用フォルダのなかのVisualStudio_2017用ソリューションを実行してみてください。(プログラム実行使てみてくがはいっているのでそのままでうごきます)
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 13:17
by かきわ
これのことでしょうか?
#include "DxLib.h"
int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int){
DxLib_Init(); // DXライブラリ初期化処理
WaitKey(); // キー入力待ち
DxLib_End(); // DXライブラリ終了処理
return 0;
}
ソースコードの調べ方がよくわからないので間違えていたら教えてください
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 13:24
by かきわ
1>------ ビルド開始: プロジェクト: VisualStudio_2017用, 構成: Debug x64 ------
1>ターゲット PrepareForBuild:
1> ディレクトリ "x64\Debug\VisualSt.9DB6B88F.tlog\" を作成しています。
1>ターゲット InitializeBuildStatus:
1> "AlwaysCreate" が指定されたため "x64\Debug\VisualSt.9DB6B88F.tlog\unsuccessfulbuild" を作成しています。
1>ターゲット ClCompile:
1> test.cpp
1> c:\users\user\downloads\dxlib_vc\サンプルプログラム実行用フォルダ\dxlibfile\dxdatatype.h(14): fatal error C1083: include ファイルを開けません。'stdio.h':No such file or directory
1>プロジェクト "VisualStudio_2017用.vcxproj" 内のターゲット "ClCompile" のビルドが終了しました -- 失敗。
1>
1>プロジェクト "VisualStudio_2017用.vcxproj" のビルドが終了しました -- 失敗。
========== ビルド: 0 正常終了、1 失敗、0 更新不要、0 スキップ ==========
というエラーが出てしまいました

Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 13:25
by Math
違います。
DxLib_VC フォルダーの中の ”サンプルプログラム実行用フォルダ“ のなかの ”VisualStudio_2017用”ソリューションを実行してみてください。(プログラムがはいっているのでそのままでうごきます)
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 13:30
by かきわ

上記の画像の青い部分を押せばいいんですよね?
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 13:32
by Math
あ、そうです。
一度 VisualStudioを閉じて
DxLib_VC フォルダーの中の ”サンプルプログラム実行用フォルダ“ のなかの ”VisualStudio_2017用”ソリューションを ダブルクリック して 実行してみたほうが分かり易いですね。
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 13:38
by かきわ
https://i.imgur.com/rDTvNQP.png
上記の画像のように何も反応しませんでしたデバック無しで開始を押すと今までと同じようなincludeファイルが開けませんとでました
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 13:44
by Math
Ctrl + F5 を押してください
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 13:49
by かきわ

こうなりました
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 14:02
by Math
自分の環境では(Windows10 、VS2017Community)では女の娘の絵がでますね。
(DxLib_VC は D:\DxLib_VC です)
VisualStudioで簡単なコンソールアプリケーション(”Hello World!"など)は動きますか?
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 14:10
by かきわ

同じエラーが出てしまいます
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 14:32
by Math
VisualStudioの問題のようです。Microsoftのforumなどに問い合わせるといいでしょう。
(C/C++のデスクトップ開発機能がはいってないのでは!)
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 14:43
by かきわ
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 14:45
by かきわ
(C/C++のデスクトップ開発機能が入っていませんでした
Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ
Posted: 2017年9月17日(日) 15:01
by かきわ
すいませんでした私の単純なミスに長々とつき合わせてしまいました、おかげできちんと作動しました本当にありがとうございます