Open asmwarrior opened 2 years ago
-------------- Build: win_gcc in dll_sdk_exe (compiler: GNU GCC Compiler)--------------- [ 50.0%] g++.exe -IF:/msys2/mingw64/lib/wx/include/msw-unicode-3.2 -IF:/msys2/mingw64/include/wx-3.2 -mthreads -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMSW__ -DHAVE_W32API_H -D_UNICODE -fmessage-length=0 -pipe -c F:\code\cb_projects_for_wxWidgets\samples\dll\sdk_exe.cpp -o .objs\win_gcc\sdk_exe.o In file included from F:\code\cb_projects_for_wxWidgets\samples\dll\sdk_exe.cpp:29: F:\code\cb_projects_for_wxWidgets\samples\dll\sdk_exe.cpp:40:36: error: cannot convert 'const wchar_t*' to 'const TCHAR*' {aka 'const char*'} in initialization 40 | const TCHAR *MAIN_WIN_CLASS_NAME = _TEXT("my_exe_main_win_class"); | ^~~~~ | | | const wchar_t* In file included from F:/msys2/mingw64/include/windows.h:72, from F:\code\cb_projects_for_wxWidgets\samples\dll\sdk_exe.cpp:25: F:\code\cb_projects_for_wxWidgets\samples\dll\sdk_exe.cpp: In function 'bool {anonymous}::CreateMainWindow()': F:\code\cb_projects_for_wxWidgets\samples\dll\sdk_exe.cpp:111:21: error: cannot convert 'const wchar_t*' to 'LPCSTR' {aka 'const char*'} 111 | _TEXT("Main Win32 app"), | ^~~~~ | | | const wchar_t* F:/msys2/mingw64/include/winuser.h:2203:84: note: initializing argument 3 of 'HWND__* CreateWindowExA(DWORD, LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)' 2203 | WINUSERAPI HWND WINAPI CreateWindowExA(DWORD dwExStyle,LPCSTR lpClassName,LPCSTR lpWindowName,DWORD dwStyle,int X,int Y,int nWidth,int nHeight,HWND hWndParent,HMENU hMenu,HINSTANCE hInstance,LPVOID lpParam); | ~~~~~~~^~~~~~~~~~~~ F:\code\cb_projects_for_wxWidgets\samples\dll\sdk_exe.cpp:122:9: error: cannot convert 'const wchar_t*' to 'LPCSTR' {aka 'const char*'} 122 | _TEXT("static"), | ^~~~~ | | | const wchar_t* F:/msys2/mingw64/include/winuser.h:2203:65: note: initializing argument 2 of 'HWND__* CreateWindowExA(DWORD, LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)' 2203 | WINUSERAPI HWND WINAPI CreateWindowExA(DWORD dwExStyle,LPCSTR lpClassName,LPCSTR lpWindowName,DWORD dwStyle,int X,int Y,int nWidth,int nHeight,HWND hWndParent,HMENU hMenu,HINSTANCE hInstance,LPVOID lpParam); | ~~~~~~~^~~~~~~~~~~ F:\code\cb_projects_for_wxWidgets\samples\dll\sdk_exe.cpp:131:9: error: cannot convert 'const wchar_t*' to 'LPCSTR' {aka 'const char*'} 131 | _TEXT("button"), | ^~~~~ | | | const wchar_t* F:/msys2/mingw64/include/winuser.h:2203:65: note: initializing argument 2 of 'HWND__* CreateWindowExA(DWORD, LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)' 2203 | WINUSERAPI HWND WINAPI CreateWindowExA(DWORD dwExStyle,LPCSTR lpClassName,LPCSTR lpWindowName,DWORD dwStyle,int X,int Y,int nWidth,int nHeight,HWND hWndParent,HMENU hMenu,HINSTANCE hInstance,LPVOID lpParam); | ~~~~~~~^~~~~~~~~~~ Process terminated with status 1 (0 minute(s), 1 second(s)) 4 error(s), 0 warning(s) (0 minute(s), 1 second(s))
Not sure why
Not sure why