DxLibのDev-C++用ライブラリにて、コンパイルが出来ません。
Dev-C++はD:/ProgramFiles/Dev-Cppにインストールされています。
DxLibの「プロジェクトに追加すべきファイル_GCC(Dev-cpp)用」はD:/Lib/DxLibにインストールされています。(つまりD:/Lib/DxLib/libDxLib.aとなる)
Dev-C++の生成したMakefile
# Project: 1500eyes
# Makefile created by Dev-C++ 5.11
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
OBJ = main.o
LINKOBJ = main.o
LIBS = -L"D:/Lib/DxLib" -L"D:/ProgramFiles/Dev-Cpp/MinGW64/lib" -L"D:/ProgramFiles/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib" -static-libgcc -mwindows -lDxLib -lDxUseCLib -lDxDrawFunc -ljpeg -lpng -lzlib -ltiff -ltheora_static -lvorbis_static -lvorbisfile_static -logg_static -lbulletdynamics -lbulletcollision -lbulletmath
INCS = -I"D:/ProgramFiles/Dev-Cpp/MinGW64/include" -I"D:/ProgramFiles/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"D:/ProgramFiles/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include"
CXXINCS = -I"D:/Lib/DxLib" -I"D:/ProgramFiles/Dev-Cpp/MinGW64/include" -I"D:/ProgramFiles/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"D:/ProgramFiles/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"D:/ProgramFiles/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++"
BIN = 1500eyes.exe
CXXFLAGS = $(CXXINCS) -DDX_GCC_COMPILE -DDX_NON_INLINE_ASM
CFLAGS = $(INCS)
RM = rm.exe -f
.PHONY: all all-before all-after clean clean-custom
all: all-before $(BIN) all-after
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
main.o: main.cpp
$(CPP) -c main.cpp -o main.o $(CXXFLAGS)
エラーメッセージ
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libDxLib.a when searching for -lDxLib
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib\libDxLib.a when searching for -lDxLib
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libDxLib.a when searching for -lDxLib
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe cannot find -lDxLib
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libDxUseCLib.a when searching for -lDxUseCLib
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib\libDxUseCLib.a when searching for -lDxUseCLib
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libDxUseCLib.a when searching for -lDxUseCLib
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe cannot find -lDxUseCLib
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libDxDrawFunc.a when searching for -lDxDrawFunc
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib\libDxDrawFunc.a when searching for -lDxDrawFunc
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libDxDrawFunc.a when searching for -lDxDrawFunc
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe cannot find -lDxDrawFunc
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libjpeg.a when searching for -ljpeg
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib\libjpeg.a when searching for -ljpeg
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libjpeg.a when searching for -ljpeg
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe cannot find -ljpeg
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libpng.a when searching for -lpng
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib\libpng.a when searching for -lpng
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libpng.a when searching for -lpng
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe cannot find -lpng
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libzlib.a when searching for -lzlib
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib\libzlib.a when searching for -lzlib
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libzlib.a when searching for -lzlib
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe cannot find -lzlib
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libtiff.a when searching for -ltiff
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib\libtiff.a when searching for -ltiff
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libtiff.a when searching for -ltiff
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe cannot find -ltiff
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libtheora_static.a when searching for -ltheora_static
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib\libtheora_static.a when searching for -ltheora_static
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libtheora_static.a when searching for -ltheora_static
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe cannot find -ltheora_static
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libvorbis_static.a when searching for -lvorbis_static
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib\libvorbis_static.a when searching for -lvorbis_static
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libvorbis_static.a when searching for -lvorbis_static
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe cannot find -lvorbis_static
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libvorbisfile_static.a when searching for -lvorbisfile_static
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib\libvorbisfile_static.a when searching for -lvorbisfile_static
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libvorbisfile_static.a when searching for -lvorbisfile_static
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe cannot find -lvorbisfile_static
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libogg_static.a when searching for -logg_static
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib\libogg_static.a when searching for -logg_static
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libogg_static.a when searching for -logg_static
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe cannot find -logg_static
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libbulletdynamics.a when searching for -lbulletdynamics
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib\libbulletdynamics.a when searching for -lbulletdynamics
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libbulletdynamics.a when searching for -lbulletdynamics
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe cannot find -lbulletdynamics
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libbulletcollision.a when searching for -lbulletcollision
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib\libbulletcollision.a when searching for -lbulletcollision
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libbulletcollision.a when searching for -lbulletcollision
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe cannot find -lbulletcollision
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libbulletmath.a when searching for -lbulletmath
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib\libbulletmath.a when searching for -lbulletmath
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe skipping incompatible D:/Lib/DxLib/libbulletmath.a when searching for -lbulletmath
D:\ProgramFiles\Dev-Cpp\MinGW64\x86_64-w64-mingw32\bin\ld.exe cannot find -lbulletmath
D:\Users\******\Documents\GameProjects\1500eyes\1500eyes\collect2.exe [Error] ld returned 1 exit status
25 D:\Users\******\Documents\GameProjects\1500eyes\1500eyes\Makefile.win recipe for target '1500eyes.exe' failed
main.cpp
#include "DxLib.h"
// プログラムは WinMain から始まります
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow )
{
ChangeWindowMode( true );
if( DxLib_Init() == -1 )
return -1;
WaitKey();
DxLib_End();
return 0 ; // ソフトの終了
}
一応GCC用のライブラリファイルを全て試しましたが、全てコンパイル不可能でした。
DxLibの導入方法のサイトを見返し、設定項目を確かめましたが全てあっていました。
症状としては(
https://dxlib.xsrv.jp/cgi/patiobbs/patio.cgi?mode=view&no=3123)の方と似ている気がします。
コンパイルするにはどうすればいいでしょうか?
Windows7 64bit
Core i3
Memory 8GB