include ファイルを開けません。'tchar.h':No such file or directoryについて

フォーラム(掲示板)ルール
フォーラム(掲示板)ルールはこちら  ※コードを貼り付ける場合は [code][/code] で囲って下さい。詳しくはこちら
かきわ

include ファイルを開けません。'tchar.h':No such file or directoryについて

#1

投稿記事 by かきわ » 7年前

画像のように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

Math

Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ

#2

投稿記事 by Math » 7年前

DxLib を最新のVer3.18eに入れ替えられましたか?
Windows10、VS2017の場合
http://dixq.net/forum/viewtopic.php?f=3&t=19562
を参考にしてみてください。

かきわ

Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ

#3

投稿記事 by かきわ » 7年前

画像
上記の画像のようにDxLibの中身を消してサンプルプログラム実行用フォルダの中身を移し変えても結果は同じでした

Math

Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ

#4

投稿記事 by Math » 7年前

DxLib が フォルダーに見えませんが?
…なにか勘違いされていますね!。(^^;



Math

Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ

#7

投稿記事 by Math » 7年前

ルールhttp://dixq.net/board/board.htmlに従って必要事項を記入してください。
(OS,VisualStudioのver. とかです)

かきわ

Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ

#8

投稿記事 by かきわ » 7年前

すいません
①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:だと思います

Math

Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ

#9

投稿記事 by Math » 7年前

>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が開けないとは変ですね?。
ソースコードを提示していただけませんでしょうか。

Math

Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ

#10

投稿記事 by Math » 7年前

No.3の
>上記の画像のようにDxLibの中身を消してサンプルプログラム実行用フォルダの中身を移し変えても結果は同じでした

のこれは書き間違いですよね.(^^;

サンプルプログラム実行用フォルダのなかのVisualStudio_2017用ソリューションを実行してみてください。(プログラム実行使てみてくがはいっているのでそのままでうごきます)

かきわ

Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ

#11

投稿記事 by かきわ » 7年前

これのことでしょうか?
#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につ

#12

投稿記事 by かきわ » 7年前

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 スキップ ==========
というエラーが出てしまいました
画像

Math

Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ

#13

投稿記事 by Math » 7年前

違います。

DxLib_VC フォルダーの中の ”サンプルプログラム実行用フォルダ“ のなかの ”VisualStudio_2017用”ソリューションを実行してみてください。(プログラムがはいっているのでそのままでうごきます)

かきわ

Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ

#14

投稿記事 by かきわ » 7年前

画像
上記の画像の青い部分を押せばいいんですよね?

Math

Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ

#15

投稿記事 by Math » 7年前

あ、そうです。

一度 VisualStudioを閉じて
DxLib_VC フォルダーの中の ”サンプルプログラム実行用フォルダ“ のなかの ”VisualStudio_2017用”ソリューションを ダブルクリック して 実行してみたほうが分かり易いですね。

かきわ

Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ

#16

投稿記事 by かきわ » 7年前

https://i.imgur.com/rDTvNQP.png
上記の画像のように何も反応しませんでしたデバック無しで開始を押すと今までと同じようなincludeファイルが開けませんとでました



Math

Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ

#19

投稿記事 by Math » 7年前

自分の環境では(Windows10 、VS2017Community)では女の娘の絵がでますね。
(DxLib_VC は D:\DxLib_VC です)
VisualStudioで簡単なコンソールアプリケーション(”Hello World!"など)は動きますか?


Math

Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ

#21

投稿記事 by Math » 7年前

VisualStudioの問題のようです。Microsoftのforumなどに問い合わせるといいでしょう。
(C/C++のデスクトップ開発機能がはいってないのでは!)

かきわ

Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ

#22

投稿記事 by かきわ » 7年前

https://i.imgur.com/cMDMyWh.png
https://i.imgur.com/DyRuZ96.png
現在入れてる物です何か足りない物はありませんか?きちんと必要なパッケージが入っているなら問い合わせたいと思います

かきわ

Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ

#23

投稿記事 by かきわ » 7年前

(C/C++のデスクトップ開発機能が入っていませんでした

かきわ

Re: include ファイルを開けません。'tchar.h':No such file or directoryにつ

#24

投稿記事 by かきわ » 7年前

すいませんでした私の単純なミスに長々とつき合わせてしまいました、おかげできちんと作動しました本当にありがとうございます

返信

“C言語何でも質問掲示板” へ戻る