minGWでコンパイルしようとすると、
In file included from DxDataType.h:17,
from DxCompileConfig.h:391,
from DxLib.h:12,
from dx.c:2:
DxDataTypeWin.h:1255:1: error: unknown type name 'namespace'; did you mean '_istspace'?
namespace DxLib
^~~~~~~~~
_istspace
DxDataTypeWin.h:1256:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
In file included from DxCompileConfig.h:391,
from DxLib.h:12,
from dx.c:2:
DxDataType.h:36:1: error: unknown type name 'namespace'; did you mean '_istspace'?
namespace DxLib
^~~~~~~~~
_istspace
DxDataType.h:37:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
In file included from dx.c:2:
DxLib.h:1107:1: error: unknown type name 'namespace'; did you mean '_istspace'?
namespace DxLib
^~~~~~~~~
_istspace
DxLib.h:1108:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
In file included from DxLib.h:1802,
from dx.c:2:
DxFunctionWin.h:16:1: error: unknown type name 'namespace'; did you mean '_istspace'?
namespace DxLib
^~~~~~~~~
_istspace
DxFunctionWin.h:17:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
In file included from dx.c:2:
DxLib.h:1822:1: error: unknown type name 'namespace'; did you mean '_istspace'?
namespace DxLib
^~~~~~~~~
_istspace
DxLib.h:1823:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
In file included from dx.c:2:
DxLib.h:5265:1: error: unknown type name 'using'; did you mean 'u_int'?
using namespace DxLib ;
^~~~~
u_int
DxLib.h:5265:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DxLib'
using namespace DxLib ;
^~~~~
dx.c: In function 'WinMain':
dx.c:4:20: error: parameter name omitted
int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int){
^~~~~~~~~
dx.c:4:30: error: parameter name omitted
int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int){
^~~~~~~~~
dx.c:4:40: error: parameter name omitted
int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int){
^~~~~
dx.c:4:46: error: parameter name omitted
int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int){
^~~
dx.c:5:9: warning: implicit declaration of function 'DxLib_Init'; did you mean 'LZInit'? [-Wimplicit-function-declaration]
DxLib_Init(); // DX・1;35m^~~~~~~~~~
LZInit
dx.c:8:9: warning: implicit declaration of function 'WaitKey' [-Wimplicit-function-declaration]
WaitKey(); // ・1;35m^~~~~~~
dx.c:9:9: warning: implicit declaration of function 'DxLib_End' [-Wimplicit-function-declaration]
DxLib_End(); // DX・1;35m^~~~~~~~~
と、表示されて、コンパイルできません。
コードは
#define DX_GCC_COMPILE
#include "DxLib.h"
int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int){
DxLib_Init(); // DXライブラリ初期化処理
WaitKey(); // キー入力待ち
DxLib_End(); // DXライブラリ終了処理
return 0;
}
です。
どのようにすればコンパイルできるでしょうか?