トップページ > 記事閲覧
ChocolateyでインストールしたMinGW 5.3.0
名前:ts0818 日時: 2018/10/07 14:57

はじめまして。 ts0818という名前で、はてなブログをしておる者です。 初投稿になります。 MinGWで実行ファイルを作りたいのですが、コンパイルまではでき、oファイルはできたのですが、 実行ファイルがどうしても作れません。 MinGWはもちろん、C、C++についても全くの初心者になります。 環境: OS:Windows 10 Home コンパイラ:MinGW 5.3.0(chocolateyでインストールしています。C:\chocolatey-package\mingw64) エディター:Visula Studio Code DXライブラリとしては、MinGW用の、「5_3_0_i686」を利用させていただいてます。 試したこと。 □コンパイル g++.exe -c .\test.cpp -o test.o -DDX_GCC_COMPILE -DDX_GCC_COMPILE_5_3_0 -DDX_NON_INLINE_ASM --input-charset=cp932 --exec-charset=cp932 -I"C:\chocolatey-package\mingw64\include" -I"C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686" □実行 g++.exe test.o -o .\test.exe -mwindows -L"C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686" -L"C:\chocolatey-package\mingw64\lib" -L"C:\chocolatey-package\mingw64\lib\gcc\x86_64-w64-mingw32\lib" -lDxLib -lDxUseCLib -lDxDrawFunc -ljpeg -lpng -lzlib -ltiff -ltheora_static -lvorbis_static -lvorbisfile_static -logg_static -lbulletdynamics -lbulletcollision -lbulletmath -lopusfile -lopus -lsilk_common -lcelt □エラー内容 /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libDxLib.a when searching for -lDxLib /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libDxLib.a when searching for -lDxLib /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libDxLib.a when searching for -lDxLib /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lDxLib /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libDxUseCLib.a when searching for -lDxUseCLib /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libDxUseCLib.a when searching for -lDxUseCLib /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libDxUseCLib.a when searching for -lDxUseCLib /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lDxUseCLib /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libDxDrawFunc.a when searching for -lDxDrawFunc /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libDxDrawFunc.a when searching for -lDxDrawFunc /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libDxDrawFunc.a when searching for -lDxDrawFunc /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lDxDrawFunc /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libjpeg.a when searching for -ljpeg /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libjpeg.a when searching for -ljpeg /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libjpeg.a when searching for -ljpeg /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: cannot find -ljpeg /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libpng.a when searching for -lpng /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libpng.a when searching for -lpng /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libpng.a when searching for -lpng /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lpng /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libzlib.a when searching for -lzlib /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libzlib.a when searching for -lzlib /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libzlib.a when searching for -lzlib /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lzlib /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libtiff.a when searching for -ltiff /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libtiff.a when searching for -ltiff /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libtiff.a when searching for -ltiff /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: cannot find -ltiff /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libtheora_static.a when searching for -ltheora_static /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libtheora_static.a when searching for -ltheora_static /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libtheora_static.a when searching for -ltheora_static /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: cannot find -ltheora_static /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libvorbis_static.a when searching for -lvorbis_static /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libvorbis_static.a when searching for -lvorbis_static /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libvorbis_static.a when searching for -lvorbis_static /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lvorbis_static /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libvorbisfile_static.a when searching for -lvorbisfile_static /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libvorbisfile_static.a when searching for -lvorbisfile_static /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libvorbisfile_static.a when searching for -lvorbisfile_static /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lvorbisfile_static /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libogg_static.a when searching for -logg_static /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libogg_static.a when searching for -logg_static /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libogg_static.a when searching for -logg_static /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: cannot find -logg_static /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libbulletdynamics.a when searching for -lbulletdynamics /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libbulletdynamics.a when searching for -lbulletdynamics /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libbulletdynamics.a when searching for -lbulletdynamics /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lbulletdynamics /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libbulletcollision.a when searching for -lbulletcollision /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libbulletcollision.a when searching for -lbulletcollision /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libbulletcollision.a when searching for -lbulletcollision /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lbulletcollision /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libbulletmath.a when searching for -lbulletmath /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libbulletmath.a when searching for -lbulletmath /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libbulletmath.a when searching for -lbulletmath /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lbulletmath /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libopusfile.a when searching for -lopusfile /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libopusfile.a when searching for -lopusfile /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libopusfile.a when searching for -lopusfile /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lopusfile /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libopus.a when searching for -lopus /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libopus.a when searching for -lopus /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libopus.a when searching for -lopus /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lopus /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libsilk_common.a when searching for -lsilk_common /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libsilk_common.a when searching for -lsilk_common /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libsilk_common.a when searching for -lsilk_common /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lsilk_common /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libcelt.a when searching for -lcelt /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libcelt.a when searching for -lcelt /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: skipping incompatible C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686/libcelt.a when searching for -lcelt /usr/lib/gcc/x86_64-pc-msys/6.3.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lcelt collect2: error: ld returned 1 exit status 一つ気になっていることが、ChocolateyでインストールしたMinGWには、 -ljpeg -lpng -lzlib -ltiff -ltheora_static -lvorbis_static -lvorbisfile_static -logg_static -lbulletdynamics -lbulletcollision -lbulletmath -lopusfile -lopus -lsilk_common -lcelt に該当するようなaファイルが見当たらないのですが、問題ないでしょうか? 何卒よろしくお願いいたします。
メンテ

Page: 1 |

Re: ChocolateyでインストールしたMinGW 5.3.0 ( No.1 )
名前:TiDAL 日時:2018/10/07 20:30

MinGW関連はさっぱり使ったことが無いので大ウソを書いているかもしれませんが、chocolatey(というのも さっき知った)でインストールしてやってみました。エラーなくビルドして動くようになったので参考までに。 MinGW64はC:\tools\mingw64にインストールしています。(というかインストールフォルダってどこで指定するの...) DxLibのMinGW 5_3_0_i686フォルダには32bit版ライブラリしかありませんが、 MinGW64は64bitアプリを作る開発環境で、リンクするときに64bit版DxLibライブラリが無いので エラーになるのだと思います。ということで1つ前の5_2_0_w64の64bit版を指定すればビルドできました。 ひとまとめに書いていますがこんな感じ。(Visual Studio Codeではなく単にコマンドプロンプトからやってます) g++.exe test.cpp -o test.exe -O -DDX_GCC_COMPILE -DDX_GCC_COMPILE_5_3_0 -DDX_NON_INLINE_ASM --input-charset=cp932 --exec-charset=cp932 -I"C:\tools\mingw64\include" -I"C:\tools\mingw64\lib\gcc\x86_64-w64-mingw32\5.3.0\include" -I"C:\tools\mingw64\lib\gcc\x86_64-w64-mingw32\5.3.0" -I"X:\XXXXX\DxLib_GCC\プロジェクトに追加すべきファイル_GCC(MinGW)用\5_2_0_w64\x86_64" -L"X:\XXXXX\DxLib_GCC\プロジェクトに追加すべきファイル_GCC(MinGW)用\5_2_0_w64\x86_64" -L"C:\tools\mingw64\lib" -L"C:\tools\mingw64\lib\gcc\x86_64-w64-mingw32\5.3.0" -mwindows -lDxLib -lDxUseCLib -lDxDrawFunc -ljpeg -lpng -lzlib -ltiff -ltheora_static -lvorbis_static -lvorbisfile_static -logg_static -lbulletdynamics -lbulletcollision -lbulletmath -lopusfile -lopus -lsilk_common -lcelt -m32を指定すれば32bitビルドもできるのかもしれませんが、今度は基本ライブラリが無いと エラーになったのであきらめました。
メンテ
Re: ChocolateyでインストールしたMinGW 5.3.0 ( No.2 )
名前:ts0818 日時:2018/10/07 23:06

TiDALさん 返信ありがとうございます。 ありがとうございます。 どうして良いかサッパリだったので。 教えていただいたことを試してみたいと思います。 自分も、Visual Studio Code内蔵のターミナル(実態は、PowerShell)でコマンドしてるので、 いけると思われます。 時間がないので、来週になってしまうかもしれませんが、 結果をご報告したいと思います。 Chocolatetyで、MinGWのようなPackageは特殊らしく、Windowsの環境変数に「ChocolateyToolsLocation」というものがいて、 MinGWはインストールの際に、この環境変数を参照するらしく、コマンドプロンプトなどでSETを使って一時的に環境変数を変えて みたりしたのですが、どうしても「C:\tools」にインストールされてしまうので、直接、環境変数の値を「C:\chocolatey-package」 に変えています。 自分もよくわかっていないのですが、Chocolatey 0.9+以前は、「ChocolateyBinRoot」という環境変数だったらしいのですが、 非推奨になり、バージョン2.0 からは削除される予定らしく、これからは「ChocolateyToolsLocation」となるみたいです。 何卒よろしくお願いいたします。
メンテ
Re: ChocolateyでインストールしたMinGW 5.3.0 ( No.3 )
名前:ts0818 日時:2018/10/14 14:41

TIDALさん 遅くなり申し訳ございません。 試してみたのですが、どうしてもエラーになってしまいます。 コマンドプロンプトでも試してみたのですが、同じエラーになってしまいました。 ■プロジェクトの構成 C:\Users\Toshinobu\Desktop\dxproject ・5_2_0_w64 ・test.cpp ■実行したこと g++.exe test.cpp -o test.exe -O -DDX_GCC_COMPILE -DDX_GCC_COMPILE_5_3_0 -DDX_NON_INLINE_ASM --input-charset=cp932 --exec-charset=cp932 -I"C:\chocolatey-package\mingw64\include" -I"C:\chocolatey-package\mingw64\lib\gcc\x86_64-w64-mingw32\5.3.0\include" -I"C:\chocolatey-package\mingw64\lib\gcc\x86_64-w64-mingw32\5.3.0" -I"C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64" -L"C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64" -L"C:\chocolatey-package\mingw64\lib" -L"C:\chocolatey-package\mingw64\lib\gcc\x86_64-w64-mingw32\5.3.0" -mwindows -lDxLib -lDxUseCLib -lDxDrawFunc -ljpeg -lpng -lzlib -ltiff -ltheora_static -lvorbis_static -lvorbisfile_static -logg_static -lbulletdynamics -lbulletcollision -lbulletmath -lopusfile -lopus -lsilk_common -lcelt ■エラー内容 In file included from C:\chocolatey-package\mingw64\lib\gcc\x86_64-w64-mingw32\5.3.0\include/x86intrin.h:80:0, from /usr/include/w32api/winnt.h:1519, from /usr/include/w32api/minwindef.h:163, from /usr/include/w32api/windef.h:8, from /usr/include/w32api/windows.h:69, from /c/Users/Toshinobu/Desktop/dxproject/5_2_0_w64/x86_64/DxDataTypeWin.h:21, from /c/Users/Toshinobu/Desktop/dxproject/5_2_0_w64/x86_64/DxDataType.h:17, from /c/Users/Toshinobu/Desktop/dxproject/5_2_0_w64/x86_64/DxCompileConfig.h:379, from /c/Users/Toshinobu/Desktop/dxproject/5_2_0_w64/x86_64/DxLib.h:12, from test.cpp:1: C:\chocolatey-package\mingw64\lib\gcc\x86_64-w64-mingw32\5.3.0\include/pcommitintrin.h:33:29: error: attribute(target("pcommit")) is unknown #pragma GCC target("pcommit") ^ C:\chocolatey-package\mingw64\lib\gcc\x86_64-w64-mingw32\5.3.0\include/pcommitintrin.h: In function ‘void _mm_pcommit()’ : C:\chocolatey-package\mingw64\lib\gcc\x86_64-w64-mingw32\5.3.0\include/pcommitintrin.h:41:27: error: ‘__builtin_ia32_pcom mit’ was not declared in this scope __builtin_ia32_pcommit (); ^ お時間のあるときに、アドバイスをいただければ幸いです。 何卒よろしくお願いいたします。
メンテ
Re: ChocolateyでインストールしたMinGW 5.3.0 ( No.4 )
名前:TiDAL 日時:2018/10/14 18:41

うーん、なぜでしょうかね? こちらでも再度やってみましたが問題なくビルド・実行できました。 エラーになっているのは pcommitintrin.h ですが、なんとなくエラー部分をすっとばしても 大丈夫な気がする(※根拠なし)ので、  g++.exe test.cpp -o test.exe -D_PCOMMITINTRIN_H_INCLUDED -DDX_GCC_COMPILE (以下省略) のように -D_PCOMMITINTRIN_H_INCLUDED を追加して試してみてはどうでしょうか。 こちらではエラーなくビルドし、実行もできています。 ※ただ、仮にビルドが通ったからといって、それで今後もOKかとは言えないので、あくまで参考程度ですが...
メンテ
Re: ChocolateyでインストールしたMinGW 5.3.0 ( No.5 )
名前:TiDAL 日時:2018/10/14 19:03

今回のエラーはコンパイル時点でのエラーなのですが、よく考えるとスレッドの最初に 書いてある 「試したこと。 □コンパイル」はこのエラーは起きていないんですよね。 □コンパイル と □実行 について、DxLibのフォルダ部分をいじってビルドしたら よいのではないでしょうか?
メンテ
Re: ChocolateyでインストールしたMinGW 5.3.0 ( No.6 )
名前:ts0818 日時:2018/10/14 20:38

TiDALさん さっそくの返信ありがとうございます。 -D_PCOMMITINTRIN_H_INCLUDED を追加してみたところ、自分の環境では、別のエラーが出てしまいました。 ■実行 g++.exe test.cpp -o test.exe -O -D_PCOMMITINTRIN_H_INCLUDED -DDX_GCC_COMPILE -DDX_GCC_COMPILE_5_3_0 -DDX_NON_INLINE_ASM --input-charset=cp932 --exec-charset=cp932 -I"C:\chocolatey-package\mingw64\include" -I"C:\chocolatey-package\mingw64\lib\gcc\x86_64-w64-mingw32\5.3.0\include" -I"C:\chocolatey-package\mingw64\lib\gcc\x86_64-w64-mingw32\5.3.0" -I"C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64" -L"C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64" -L"C:\chocolatey-package\mingw64\lib" -L"C:\chocolatey-package\mingw64\lib\gcc\x86_64-w64-mingw32\5.3.0" -mwindows -lDxLib -lDxUseCLib -lDxDrawFunc -ljpeg -lpng -lzlib -ltiff -ltheora_static -lvorbis_static -lvorbisfile_static -logg_static -lbulletdynamics -lbulletcollision -lbulletmath -lopusfile -lopus -lsilk_common -lcelt ■エラー内容 C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libDxLib.a(DxBaseFuncWin.o):DxBaseFuncWin.cpp:(.text+0x343): undefined reference to `__imp__fpclass' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libDxLib.a(DxBaseFuncWin.o):DxBaseFuncWin.cpp:(.text+0x343): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp__fpclass' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x411): undefined reference to `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x411): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x5ed): undefined reference to `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x5ed): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x92b): undefined reference to `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x92b): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x17b3): undefined reference to `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x17b3): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x2aa6): undefined reference to `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x2aa6): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x2e7e): more undefined references to `__imp__errno' follow C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x2e7e): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libjpeg.a(jerror.o):jerror.c:(.text+0x1a8): undefined reference to `__imp___iob_func' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libjpeg.a(jerror.o):jerror.c:(.text+0x1a8): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp___iob_func' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libpng.a(pngerror.o):pngerror.c:(.text+0x19): undefined reference to `__mingw_vfprintf' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libpng.a(pngerror.o):pngerror.c:(.text+0x19): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__mingw_vfprintf' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libpng.a(pngerror.o):pngerror.c:(.text+0x366): undefined reference to `__imp___iob_func' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libpng.a(pngerror.o):pngerror.c:(.text+0x366): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp___iob_func' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libpng.a(pngread.o):pngread.c:(.text+0x8222): undefined reference to `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libpng.a(pngread.o):pngread.c:(.text+0x8222): additional relocation overflows omitted from the output C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libpng.a(pngwrite.o):pngwrite.c:(.text+0x14a4): undefined reference to `__imp__gmtime64' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libpng.a(pngwrite.o):pngwrite.c:(.text+0x475c): undefined reference to `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libpng.a(pngwrite.o):pngwrite.c:(.text+0x47a2): undefined reference to `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libpng.a(pngwrite.o):pngwrite.c:(.text+0x47c8): undefined reference to `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libtiff.a(tif_dir.o):tif_dir.c:(.text+0x956): undefined reference to `_assert' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libtiff.a(tif_dir.o):tif_dir.c:(.text+0x1c41): undefined reference to `_assert' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libtiff.a(tif_dir.o):tif_dir.c:(.text+0x1da8): undefined reference to `_assert' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libtiff.a(tif_dir.o):tif_dir.c:(.text+0x3d39): undefined reference to `_assert' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libtiff.a(tif_dirread.o):tif_dirread.c:(.text+0x5e9): undefined reference to `_assert' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libtiff.a(tif_dirread.o):tif_dirread.c:(.text+0xa8a): more undefined references to `_assert' follow C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libtiff.a(tif_win32.o):tif_win32.c:(.text+0x2bb): undefined reference to `__imp___iob_func' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libtiff.a(tif_win32.o):tif_win32.c:(.text+0x34b): undefined reference to `__imp___iob_func' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libtiff.a(tif_write.o):tif_write.c:(.text+0x1a8): undefined reference to `_assert' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libtiff.a(tif_write.o):tif_write.c:(.text+0x25d): undefined reference to `_assert' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libtiff.a(tif_write.o):tif_write.c:(.text+0x7ad): undefined reference to `_assert' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libtiff.a(tif_write.o):tif_write.c:(.text+0x91b): undefined reference to `_assert' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libtiff.a(tif_write.o):tif_write.c:(.text+0xbed): undefined reference to `_assert' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libtiff.a(tif_write.o):tif_write.c:(.text+0x2118): more undefined references to `_assert' follow C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libvorbisfile_static.a(vorbisfile.o):vorbisfile.c:(.text+0x2b): undefined reference to `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libvorbisfile_static.a(vorbisfile.o):vorbisfile.c:(.text+0x24e): undefined reference to `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libvorbisfile_static.a(vorbisfile.o):vorbisfile.c:(.text+0x365): undefined reference to `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libvorbisfile_static.a(vorbisfile.o):vorbisfile.c:(.text+0xa22): undefined reference to `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libvorbisfile_static.a(vorbisfile.o):vorbisfile.c:(.text+0xb48): undefined reference to `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libvorbisfile_static.a(vorbisfile.o):vorbisfile.c:(.text+0xc93): more undefined references to `__imp__errno' follow C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libopusfile.a(stream.o):stream.c:(.text+0x3ba): undefined reference to `__imp__wfopen' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libopusfile.a(stream.o):stream.c:(.text+0x412): undefined reference to `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libopusfile.a(stream.o):stream.c:(.text+0x442): undefined reference to `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libopusfile.a(stream.o):stream.c:(.text+0x4e0): undefined reference to `__imp__wfreopen' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libopusfile.a(stream.o):stream.c:(.text+0x535): undefined reference to `__imp__errno' C:\Users\Toshinobu\Desktop\dxproject\5_2_0_w64\x86_64/libopusfile.a(stream.o):stream.c:(.text+0x562): undefined reference to `__imp__errno' collect2: error: ld returned 1 exit status お時間のあるときに何かご教授いただければ幸いです。 すみません、初心者なので、質問のクオリティが酷いのをお許しいただきたいのですが、 DXLibフォルダ部分をいじるとは、どのようなことをすれば良いでしょうか? 何卒よろしくお願いいたします。
メンテ
Re: ChocolateyでインストールしたMinGW 5.3.0 ( No.7 )
名前:TiDAL 日時:2018/10/14 22:43

さらにわからなくなりましたね… > DXLibフォルダ部分をいじるとは、どのようなことをすれば良いでしょうか? 最初の投稿の -I"C:\Users\Toshinobu\Desktop\dxproject\5_3_0_i686" などの部分を 64bit版DxLibのある場所(5_2_0_w64/x86_64とか)に変えるだけでOKなのでは、という意味でした。 最初の投稿では、コンパイルは通ってリンクでエラーになっていたと思いますが、コメントNo.3では コンパイルの時点でエラーになっているのが、どうも気になるからです。 なお、自分の環境では g++ test.cpp -o test.exe -I"※DxLibのフォルダ" -L"※DxLibのフォルダ" -mwindows -lDxLib -lDxUseCLib -lDxDrawFunc -ljpeg -lpng -lzlib -ltiff -ltheora_static -lvorbis_static -lvorbisfile_static -logg_static -lbulletdynamics -lbulletcollision -lbulletmath -lopusfile -lopus -lsilk_common -lcelt という、-D、-I、-Lなどをばっさり省略した設定でもビルドに成功します。(もちろん起動もOK) 自分の環境は以下の通りです。 ■PC Windows 10 64bit Pro ■環境変数 で関係しそうなもの ChocolateyToolsLocation=C:\tools Path=(省略);C:\tools\mingw64\bin; ■C:\tools\mingw64 フォルダのプロパティ サイズ 421MB ファイル数 14793 フォルダー数 331 ■C:\tools\mingw64 フォルダの中にあるファイル群 ほぼすべてタイムスタンプが 2015/12/29 ■DxLibの 5_2_0_w64 フォルダ   i686 ---> 20.8MB ファイル数26 フォルダー数0   x86_64 ---> 22.9MB ファイル数26 フォルダー数0 ちなみに、DxLibを使わないプログラムはビルドできる状況でしょうか? #include <stdio.h> int main(void) { printf("こんにちは。"); return 0L; } という test2.cpp を g++ test2.cpp -o test2.exe でビルドして test2.exe を実行 #include <windows.h> int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { ::MessageBox(NULL, "こんにちは。", "Windows", MB_OK+MB_ICONINFORMATION); return 0L; } という test3.cpp を g++ test3.cpp -o test3.exe でビルドして test3.exe を実行
メンテ
Re: ChocolateyでインストールしたMinGW 5.3.0 ( No.8 )
名前:ts0818 日時:2018/10/28 13:48

TiDALさん 遅くなり申し訳ございません。 >ちなみに、DxLibを使わないプログラムはビルドできる状況でしょうか? test2.cpp、test3.cppは無事に、exeファイルができ、exeファイルの実行までできました。 ■PC Windows 10 64bit Home ■環境変数 ChocolateyToolsLocation=C:\chocolatey-package Path=(省略);C:\chocolatey-package\mingw64\bin; ■C:\chocolatey-package\mingw64 フォルダのプロパティ サイズ 421MB ファイル数 14793 フォルダー数 331 ■C:\tools\mingw64 フォルダの中にあるファイル群 ほぼすべてタイムスタンプが 2015/12/29 ■DxLibの 5_2_0_w64 フォルダ   i686 ---> 20.8MB ファイル数26 フォルダー数0   x86_64 ---> 22.9MB ファイル数26 フォルダー数0 g++ test.cpp -o test.exe -I"5_2_0_w64\x86_64" -L"5_2_0_w64\x86_64" -mwindows -lDxLib -lDxUseCLib -lDxDrawFunc -ljpeg -lpng -lzlib -ltiff -ltheora_static -lvorbis_static -lvorbisfile_static -logg_static -lbulletdynamics -lbulletcollision -lbulletmath -lopusfile -lopus -lsilk_common -lcelt で試してみたところ、 5_2_0_w64\x86_64/libDxLib.a(DxBaseFuncWin.o):DxBaseFuncWin.cpp:(.text+0x343): undefined reference to `__imp__fpclass' 5_2_0_w64\x86_64/libDxLib.a(DxBaseFuncWin.o):DxBaseFuncWin.cpp:(.text+0x343): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp__fpclass' 5_2_0_w64\x86_64/libDxLib.a(DxSoundWin.o):DxSoundWin.cpp:(.text+0x3af8): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxLib.a(DxSoundWin.o):DxSoundWin.cpp:(.text+0x3af8): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxLib.a(DxInputString.o):DxInputString.cpp:(.text+0x4d2b): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxLib.a(DxInputString.o):DxInputString.cpp:(.text+0x4d2b): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x2d16): undefined reference to `operator new[](unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x2d16): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `operator new[](unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x58f8): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x58f8): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x5cde): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x5cde): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x6fb6): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x6fb6): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x7ed8): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x7ed8): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xc596): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xc596): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xe679): undefined reference to `operator new[](unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xe679): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `operator new[](unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xe7ce): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xe7ce): additional relocation overflows omitted from the output 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xe8ff): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xe96e): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xea76): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xeb06): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xecd8): more undefined references to `operator new(unsigned long long)' follow 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x411): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x5ed): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x92b): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x17b3): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x2aa6): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x2e7e): more undefined references to `__imp__errno' follow 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibPhysics.o):DxUseCLibPhysics.cpp:(.text+0x1495): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibPhysics.o):DxUseCLibPhysics.cpp:(.text+0x1b57): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibPhysics.o):DxUseCLibPhysics.cpp:(.text+0x4ad9): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibPhysics.o):DxUseCLibPhysics.cpp:(.text+0x4af4): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibPhysics.o):DxUseCLibPhysics.cpp:(.text+0x4b65): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibPhysics.o):DxUseCLibPhysics.cpp:(.text+0x4b7e): more undefined references to `operator new(unsigned long long)' follow 5_2_0_w64\x86_64/libjpeg.a(jerror.o):jerror.c:(.text+0x1a8): undefined reference to `__imp___iob_func' 5_2_0_w64\x86_64/libpng.a(pngerror.o):pngerror.c:(.text+0x19): undefined reference to `__mingw_vfprintf' 5_2_0_w64\x86_64/libpng.a(pngerror.o):pngerror.c:(.text+0x366): undefined reference to `__imp___iob_func' 5_2_0_w64\x86_64/libpng.a(pngread.o):pngread.c:(.text+0x8222): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libpng.a(pngwrite.o):pngwrite.c:(.text+0x14a4): undefined reference to `__imp__gmtime64' 5_2_0_w64\x86_64/libpng.a(pngwrite.o):pngwrite.c:(.text+0x475c): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libpng.a(pngwrite.o):pngwrite.c:(.text+0x47a2): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libpng.a(pngwrite.o):pngwrite.c:(.text+0x47c8): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libtiff.a(tif_dir.o):tif_dir.c:(.text+0x956): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_dir.o):tif_dir.c:(.text+0x1c41): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_dir.o):tif_dir.c:(.text+0x1da8): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_dir.o):tif_dir.c:(.text+0x3d39): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_dirread.o):tif_dirread.c:(.text+0x5e9): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_dirread.o):tif_dirread.c:(.text+0xa8a): more undefined references to `_assert' follow 5_2_0_w64\x86_64/libtiff.a(tif_win32.o):tif_win32.c:(.text+0x2bb): undefined reference to `__imp___iob_func' 5_2_0_w64\x86_64/libtiff.a(tif_win32.o):tif_win32.c:(.text+0x34b): undefined reference to `__imp___iob_func' 5_2_0_w64\x86_64/libtiff.a(tif_write.o):tif_write.c:(.text+0x1a8): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_write.o):tif_write.c:(.text+0x25d): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_write.o):tif_write.c:(.text+0x7ad): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_write.o):tif_write.c:(.text+0x91b): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_write.o):tif_write.c:(.text+0xbed): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_write.o):tif_write.c:(.text+0x2118): more undefined references to `_assert' follow 5_2_0_w64\x86_64/libvorbisfile_static.a(vorbisfile.o):vorbisfile.c:(.text+0x2b): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libvorbisfile_static.a(vorbisfile.o):vorbisfile.c:(.text+0x24e): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libvorbisfile_static.a(vorbisfile.o):vorbisfile.c:(.text+0x365): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libvorbisfile_static.a(vorbisfile.o):vorbisfile.c:(.text+0xa22): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libvorbisfile_static.a(vorbisfile.o):vorbisfile.c:(.text+0xb48): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libvorbisfile_static.a(vorbisfile.o):vorbisfile.c:(.text+0xc93): more undefined references to `__imp__errno' follow 5_2_0_w64\x86_64/libopusfile.a(stream.o):stream.c:(.text+0x3ba): undefined reference to `__imp__wfopen' 5_2_0_w64\x86_64/libopusfile.a(stream.o):stream.c:(.text+0x412): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libopusfile.a(stream.o):stream.c:(.text+0x442): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libopusfile.a(stream.o):stream.c:(.text+0x4e0): undefined reference to `__imp__wfreopen' 5_2_0_w64\x86_64/libopusfile.a(stream.o):stream.c:(.text+0x535): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libopusfile.a(stream.o):stream.c:(.text+0x562): undefined reference to `__imp__errno' collect2: error: ld returned 1 exit status という状態です。お助けください。 何卒よろしくお願いいたします。
メンテ
Re: ChocolateyでインストールしたMinGW 5.3.0 ( No.9 )
名前:TiDAL 日時:2018/10/28 19:57

Win10 64bit HomeのPCにさっきインストールし、C:\chocolatey-packageに変更して試してみましたが 問題なくビルド・実行できました。うーむ… ところで、test.cppの中身はどのようなものですか? 例えば以下のようなものもエラーになりますか?(リファレンスページからのサンプルです) #include "DxLib.h" int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ) { unsigned int Cr ; if( DxLib_Init() == -1 ) // DXライブラリ初期化処理 { return -1; // エラーが起きたら直ちに終了 } Cr = GetColor( 255 , 255 , 255 ) ; DrawString( 250 , 240 - 32 , "Hello C World!" , Cr ); WaitKey() ; // キーの入力待ち(『WaitKey』を使用) DxLib_End() ; // DXライブラリ使用の終了処理 return 0 ; // ソフトの終了 }
メンテ
Re: ChocolateyでインストールしたMinGW 5.3.0 ( No.10 )
名前:ts0818 日時:2018/11/18 09:36

TIDALさん たいへん遅くなり申し訳ございません。 test,cppですが、 #include "..\..\5_2_0_w64\x86_64\DxLib.h" // プログラムは WinMain から始まります int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ) { if( DxLib_Init() == -1 ) // DXライブラリ初期化処理 { return -1 ; // エラーが起きたら直ちに終了 } DrawPixel( 320 , 240 , GetColor( 255,255,255 ) ) ; // 点を打つ WaitKey() ; // キー入力待ち DxLib_End() ; // DXライブラリ使用の終了処理 return 0 ; // ソフトの終了 } というものを実行しています。 DIDALさんに提案していただいたサンプルを、実施してみたところ、 ■ソース #include "DxLib.h" int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ) { unsigned int Cr ; if( DxLib_Init() == -1 ) // DXライブラリ初期化処理 { return -1; // エラーが起きたら直ちに終了 } Cr = GetColor( 255 , 255 , 255 ) ; DrawString( 250 , 240 - 32 , "Hello C World!" , Cr ); WaitKey() ; // キーの入力待ち(『WaitKey』を使用) DxLib_End() ; // DXライブラリ使用の終了処理 return 0 ; // ソフトの終了 } ■実施したコマンド g++ test.cpp -o test.exe -I"5_2_0_w64\x86_64" -L"5_2_0_w64\x86_64" -mwindows -lDxLib -lDxUseCLib -lDxDrawFunc -ljpeg -lpng -lzlib -ltiff -ltheora_static -lvorbis_static -lvorbisfile_static -logg_static -lbulletdynamics -lbulletcollision -lbulletmath -lopusfile -lopus -lsilk_common -lcelt ■結果内容 5_2_0_w64\x86_64/libDxLib.a(DxBaseFuncWin.o):DxBaseFuncWin.cpp:(.text+0x343): undefined reference to `__imp__fpclass' 5_2_0_w64\x86_64/libDxLib.a(DxBaseFuncWin.o):DxBaseFuncWin.cpp:(.text+0x343): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp__fpclass' 5_2_0_w64\x86_64/libDxLib.a(DxSoundWin.o):DxSoundWin.cpp:(.text+0x3af8): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxLib.a(DxSoundWin.o):DxSoundWin.cpp:(.text+0x3af8): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxLib.a(DxInputString.o):DxInputString.cpp:(.text+0x4d2b): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxLib.a(DxInputString.o):DxInputString.cpp:(.text+0x4d2b): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x2d16): undefined reference to `operator new[](unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x2d16): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `operator new[](unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x58f8): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x58f8): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x5cde): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x5cde): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x6fb6): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x6fb6): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x7ed8): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0x7ed8): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xc596): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xc596): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xe679): undefined reference to `operator new[](unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xe679): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `operator new[](unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xe7ce): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xe7ce): additional relocation overflows omitted from the output 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xe8ff): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xe96e): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xea76): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xeb06): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCStrmBaseFilter.o):DxUseCStrmBaseFilter.cpp:(.text+0xecd8): more undefined references to `operator new(unsigned long long)' follow 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x411): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x5ed): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x92b): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x17b3): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x2aa6): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibOgg.o):DxUseCLibOgg.cpp:(.text+0x2e7e): more undefined references to `__imp__errno' follow 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibPhysics.o):DxUseCLibPhysics.cpp:(.text+0x1495): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibPhysics.o):DxUseCLibPhysics.cpp:(.text+0x1b57): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibPhysics.o):DxUseCLibPhysics.cpp:(.text+0x4ad9): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibPhysics.o):DxUseCLibPhysics.cpp:(.text+0x4af4): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibPhysics.o):DxUseCLibPhysics.cpp:(.text+0x4b65): undefined reference to `operator new(unsigned long long)' 5_2_0_w64\x86_64/libDxUseCLib.a(DxUseCLibPhysics.o):DxUseCLibPhysics.cpp:(.text+0x4b7e): more undefined references to `operator new(unsigned long long)' follow 5_2_0_w64\x86_64/libjpeg.a(jerror.o):jerror.c:(.text+0x1a8): undefined reference to `__imp___iob_func' 5_2_0_w64\x86_64/libpng.a(pngerror.o):pngerror.c:(.text+0x19): undefined reference to `__mingw_vfprintf' 5_2_0_w64\x86_64/libpng.a(pngerror.o):pngerror.c:(.text+0x366): undefined reference to `__imp___iob_func' 5_2_0_w64\x86_64/libpng.a(pngread.o):pngread.c:(.text+0x8222): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libpng.a(pngwrite.o):pngwrite.c:(.text+0x14a4): undefined reference to `__imp__gmtime64' 5_2_0_w64\x86_64/libpng.a(pngwrite.o):pngwrite.c:(.text+0x475c): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libpng.a(pngwrite.o):pngwrite.c:(.text+0x47a2): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libpng.a(pngwrite.o):pngwrite.c:(.text+0x47c8): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libtiff.a(tif_dir.o):tif_dir.c:(.text+0x956): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_dir.o):tif_dir.c:(.text+0x1c41): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_dir.o):tif_dir.c:(.text+0x1da8): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_dir.o):tif_dir.c:(.text+0x3d39): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_dirread.o):tif_dirread.c:(.text+0x5e9): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_dirread.o):tif_dirread.c:(.text+0xa8a): more undefined references to `_assert' follow 5_2_0_w64\x86_64/libtiff.a(tif_win32.o):tif_win32.c:(.text+0x2bb): undefined reference to `__imp___iob_func' 5_2_0_w64\x86_64/libtiff.a(tif_win32.o):tif_win32.c:(.text+0x34b): undefined reference to `__imp___iob_func' 5_2_0_w64\x86_64/libtiff.a(tif_write.o):tif_write.c:(.text+0x1a8): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_write.o):tif_write.c:(.text+0x25d): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_write.o):tif_write.c:(.text+0x7ad): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_write.o):tif_write.c:(.text+0x91b): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_write.o):tif_write.c:(.text+0xbed): undefined reference to `_assert' 5_2_0_w64\x86_64/libtiff.a(tif_write.o):tif_write.c:(.text+0x2118): more undefined references to `_assert' follow 5_2_0_w64\x86_64/libvorbisfile_static.a(vorbisfile.o):vorbisfile.c:(.text+0x2b): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libvorbisfile_static.a(vorbisfile.o):vorbisfile.c:(.text+0x24e): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libvorbisfile_static.a(vorbisfile.o):vorbisfile.c:(.text+0x365): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libvorbisfile_static.a(vorbisfile.o):vorbisfile.c:(.text+0xa22): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libvorbisfile_static.a(vorbisfile.o):vorbisfile.c:(.text+0xb48): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libvorbisfile_static.a(vorbisfile.o):vorbisfile.c:(.text+0xc93): more undefined references to `__imp__errno' follow 5_2_0_w64\x86_64/libopusfile.a(stream.o):stream.c:(.text+0x3ba): undefined reference to `__imp__wfopen' 5_2_0_w64\x86_64/libopusfile.a(stream.o):stream.c:(.text+0x412): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libopusfile.a(stream.o):stream.c:(.text+0x442): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libopusfile.a(stream.o):stream.c:(.text+0x4e0): undefined reference to `__imp__wfreopen' 5_2_0_w64\x86_64/libopusfile.a(stream.o):stream.c:(.text+0x535): undefined reference to `__imp__errno' 5_2_0_w64\x86_64/libopusfile.a(stream.o):stream.c:(.text+0x562): undefined reference to `__imp__errno' collect2: error: ld returned 1 exit status という結果になりました...DXライブラリ激難ですね... すみません、何卒よろしくお願いいたします。
メンテ

Page: 1 |

題名
名前
コメント
パスワード (記事メンテ時に使用)

   クッキー保存