Problems after migration

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
art-ganseforth
Earned some good credits
Earned some good credits
Posts: 116
Joined: Mon Sep 01, 2014 10:14 am

Problems after migration

Post by art-ganseforth » Thu Jan 24, 2019 9:22 am

Hello,

i'm trying to migrate my DevC++ IDE to a new computer, but - as always - i've problems with the compiler-settings. Compiling a small test-project using wxWidgets works fine, but when i try to compile the project where i'm currently working on, several erreor-messages are thrown.

Most of the libraries and settings i use are quiet old. I'll try to modernize it after i getting it to work as it is...

Envoirement:
Windows 10 but still compiling with 32bit, wxWidgets 2.9.3, DevC++ IDE, MinGW

As far as i can see, both setups are identical (same flags, same libraries, same folders etc.), but on the new computer it doesn't compile and i've no idea, what i have to change to get it to work. The compiler reports:

Code: Select all

Compiler: Default GCC compiler
Building Makefile: "F:\_CPP\2019\18-09-06 - ___TFF\Makefile.win"
Führt  make... aus
mingw32-make.exe -f "Makefile.win" all 
g++.exe -c _Main.cpp -o Objects/MingW/_Main.o -I"C:/Program Files (x86)/Dev-Cpp/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include" -I"C:/Program Files (x86)/Dev-Cpp/" -I"C:/Program Files (x86)/Dev-Cpp/include/common" -D__WXMSW__ -D__GNUWIN32__ -D_UNICODE -w -pipe -Ofast -fomit-frame-pointer -msse3 -mmmx -m3dnow   -w -O3 -g3 -march=i486 -m3dnow

In file included from C:/Program Files (x86)/Dev-Cpp/include/common/wx/defs.h:3369:0,
                 from C:/Program Files (x86)/Dev-Cpp/include/common/wx/wx.h:15,
                 from _Main.h:29,
                 from _Main.cpp:10:

C:/Program Files (x86)/Dev-Cpp/include/common/wx/msw/winundef.h: In function 'HWND__* CreateDialog(HINSTANCE, LPCTSTR, HWND, DLGPROC)':
C:/Program Files (x86)/Dev-Cpp/include/common/wx/msw/winundef.h:39:20: error: cannot convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' for argument '2' to 'HWND__* CreateDialogParamW(HINSTANCE, LPCWSTR, HWND, DLGPROC, LPARAM)'
C:/Program Files (x86)/Dev-Cpp/include/common/wx/msw/winundef.h: In function 'HFONT__* CreateFont(int, int, int, int, int, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, LPCTSTR)':

C:/Program Files (x86)/Dev-Cpp/include/common/wx/msw/winundef.h:70:48: error: cannot convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' for argument '14' to 'HFONT__* CreateFontW(int, int, int, int, int, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, LPCWSTR)'
C:/Program Files (x86)/Dev-Cpp/include/common/wx/msw/winundef.h: In function 'HWND__* CreateWindow(LPCTSTR, LPCTSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)':
C:/Program Files (x86)/Dev-Cpp/include/common/wx/msw/winundef.h:95:20: error: cannot convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' for argument '2' to 'HWND__* CreateWindowExW(DWORD, LPCWSTR, LPCWSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)'
C:/Program Files (x86)/Dev-Cpp/include/common/wx/msw/winundef.h: In function 'HMENU__* LoadMenu(HINSTANCE, LPCTSTR)':
C:/Program Files (x86)/Dev-Cpp/include/common/wx/msw/winundef.h:112:44: error: cannot convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' for argument '2' to 'HMENU__* LoadMenuW(HINSTANCE, LPCWSTR)'
C:/Program Files (x86)/Dev-Cpp/include/common/wx/msw/winundef.h: In function 'HICON__* LoadIcon(HINSTANCE, LPCTSTR)':
C:/Program Files (x86)/Dev-Cpp/include/common/wx/msw/winundef.h:318:51: error: cannot convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' for argument '2' to 'HICON__* LoadIconW(HINSTANCE, LPCWSTR)'
C:/Program Files (x86)/Dev-Cpp/include/common/wx/msw/winundef.h: In function 'HBITMAP__* LoadBitmap(HINSTANCE, LPCTSTR)':

C:/Program Files (x86)/Dev-Cpp/include/common/wx/msw/winundef.h:331:55: error: cannot convert 'LPCTSTR {aka const char*}' to 'LPCWSTR {aka const wchar_t*}' for argument '2' to 'HBITMAP__* LoadBitmapW(HINSTANCE, LPCWSTR)'

mingw32-make.exe: *** [Objects/MingW/_Main.o] Error 1

Ausführung beendet
Compilation Failed. Make returned 2
Would be nice if someone could help me...

Best,
Frank

art-ganseforth
Earned some good credits
Earned some good credits
Posts: 116
Joined: Mon Sep 01, 2014 10:14 am

Re: Problems after migration

Post by art-ganseforth » Thu Jan 24, 2019 3:57 pm

Found it myself. I hat to reorder some includes.

Post Reply