Je n’arrive pas à compiler mes extensions, j’ai ça comme erreurs :
In file included from ..\..\ExtLibs\wxwidgets\include/wx/defs.h:3369:0,
from ..\..\ExtLibs\wxwidgets\include/wx/colour.h:15,
from D:\Développement\GD2\GDLSDK\Extensions\Skeleton-Extension\Bone.h:35,
from D:\Développement\GD2\GDLSDK\Extensions\Skeleton-Extension\Skeleton.h:27,
from D:\Développement\GD2\GDLSDK\Extensions\Skeleton-Extension\Skeleton.cpp:21:
..\..\ExtLibs\wxwidgets\include/wx/msw/winundef.h: In function 'HWND__* CreateDialog(HINSTANCE__*, const TCHAR*, HWND__*, BOOL (*)(HWND__*, UINT, WPARAM, LPARAM))':
..\..\ExtLibs\wxwidgets\include/wx/msw/winundef.h:39:20: error: cannot convert 'const TCHAR*' to 'const WCHAR*' for argument '2' to 'HWND__* CreateDialogParamW(HINSTANCE__*, const WCHAR*, HWND__*, BOOL (*)(HWND__*, UINT, WPARAM, LPARAM), LPARAM)'
..\..\ExtLibs\wxwidgets\include/wx/msw/winundef.h: In function 'HFONT__* CreateFont(int, int, int, int, int, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, const TCHAR*)':
..\..\ExtLibs\wxwidgets\include/wx/msw/winundef.h:70:48: error: cannot convert 'const TCHAR*' to 'const WCHAR*' for argument '14' to 'HFONT__* CreateFontW(int, int, int, int, int, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, const WCHAR*)'
..\..\ExtLibs\wxwidgets\include/wx/msw/winundef.h: In function 'HWND__* CreateWindow(const TCHAR*, const TCHAR*, DWORD, int, int, int, int, HWND__*, HMENU__*, HINSTANCE__*, void*)':
..\..\ExtLibs\wxwidgets\include/wx/msw/winundef.h:95:20: error: cannot convert 'const TCHAR*' to 'const WCHAR*' for argument '2' to 'HWND__* CreateWindowExW(DWORD, const WCHAR*, const WCHAR*, DWORD, int, int, int, int, HWND__*, HMENU__*, HINSTANCE__*, void*)'
..\..\ExtLibs\wxwidgets\include/wx/msw/winundef.h: In function 'HMENU__* LoadMenu(HINSTANCE__*, const TCHAR*)':
..\..\ExtLibs\wxwidgets\include/wx/msw/winundef.h:112:44: error: cannot convert 'const TCHAR*' to 'const WCHAR*' for argument '2' to 'HMENU__* LoadMenuW(HINSTANCE__*, const WCHAR*)'
..\..\ExtLibs\wxwidgets\include/wx/msw/winundef.h: In function 'HWND__* FindText(FINDREPLACEA*)':
..\..\ExtLibs\wxwidgets\include/wx/msw/winundef.h:127:43: error: cannot convert 'FINDREPLACEA*' to 'FINDREPLACEW*' for argument '1' to 'HWND__* FindTextW(FINDREPLACEW*)'
..\..\ExtLibs\wxwidgets\include/wx/msw/winundef.h: In function 'HICON__* LoadIcon(HINSTANCE__*, const TCHAR*)':
..\..\ExtLibs\wxwidgets\include/wx/msw/winundef.h:318:51: error: cannot convert 'const TCHAR*' to 'const WCHAR*' for argument '2' to 'HICON__* LoadIconW(HINSTANCE__*, const WCHAR*)'
..\..\ExtLibs\wxwidgets\include/wx/msw/winundef.h: In function 'HBITMAP__* LoadBitmap(HINSTANCE__*, const TCHAR*)':
..\..\ExtLibs\wxwidgets\include/wx/msw/winundef.h:331:55: error: cannot convert 'const TCHAR*' to 'const WCHAR*' for argument '2' to 'HBITMAP__* LoadBitmapW(HINSTANCE__*, const WCHAR*)'
EDIT :
J’arrive à compiler toutes les extensions sauf mon extension squelette.
Peux-tu jeter un coup d’oeil aux dernière source de l’extension et les tester chez toi ? https://github.com/victorlevasseur/Skeleton-Extension
EDIT 2:
Finalement, j’ai réussi à corriger le problème. Il fallait inclure <wx/wx.h> au tout début comme tu l’avais indiqué dans d’autres extensions.