I have an error when I build rev. 5006 from SVN.
Code: Select all
E:/WxWindows/CodeLite/CodeLite/winprocess_impl.cpp:56:33: error: 'AttachConsole' was not declared in this scope
Any suggestions?
Regards
Frank
Code: Select all
E:/WxWindows/CodeLite/CodeLite/winprocess_impl.cpp:56:33: error: 'AttachConsole' was not declared in this scope
It breaks the pre-compiled header if you define it manually (I moved to pre-compiled header compilation under Windows and this define seems to break pre compiled header when)frank_frl wrote:It seems that for some reason _WIN32_WINNT isn't defined anymore.
Code: Select all
//////////////////////////////////////////////////////////////////////////////
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif
#define _WIN32_WINNT 0x0501 // Make AttachConsole(DWORD) visible
#ifdef __WXMSW__
#include "winprocess_impl.h"
#include "processreaderthread.h"
#include <wx/filefn.h>
#include <memory>
#include "procutils.h"
#include "smart_ptr.h"
Code: Select all
windres -i "E:/WxWindows/projects_gnu/MatrixTest/MatrixTest.rc" -o ./MinGWRelease/MatrixTest.rc.o -IE:/wxWidgets-2.8.12/include
g++ -c "E:/WxWindows/projects_gnu/MatrixTest/matrixtestapp.cpp" -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IE:\wxWidgets-2.8.12\lib\gcc_lib\mswu -IE:\wxWidgets-2.8.12\include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-strict-aliasing -Wall -O3 -D__WXMSW__ -D__GNUWIN32__ -D_WIN32_WINNT=0x501 -DUNICODE -o ./MinGWRelease/matrixtestapp.o -IE:/WxWindows/projects_gnu/MyLibs/include -I. -I. -IE:/wxWidgets-2.8.12/lib/gcc_lib/mswu
g++ -c "E:/WxWindows/projects_gnu/MatrixTest/mttestdlg.cpp" -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IE:\wxWidgets-2.8.12\lib\gcc_lib\mswu -IE:\wxWidgets-2.8.12\include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-strict-aliasing -Wall -O3 -D__WXMSW__ -D__GNUWIN32__ -D_WIN32_WINNT=0x501 -DUNICODE -o ./MinGWRelease/mttestdlg.o -IE:/WxWindows/projects_gnu/MyLibs/include -I. -I. -IE:/wxWidgets-2.8.12/lib/gcc_lib/mswu
g++ -c "E:/WxWindows/projects_gnu/MatrixTest/matrix.cpp" -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IE:\wxWidgets-2.8.12\lib\gcc_lib\mswu -IE:\wxWidgets-2.8.12\include -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-strict-aliasing -Wall -O3 -D__WXMSW__ -D__GNUWIN32__ -D_WIN32_WINNT=0x501 -DUNICODE -o ./MinGWRelease/matrix.o -IE:/WxWindows/projects_gnu/MyLibs/include -I. -I. -IE:/wxWidgets-2.8.12/lib/gcc_lib/mswu
mingw32-make.exe[1]: *** [MinGWRelease/MatrixTest.exe] Error -1073741515
mingw32-make.exe: *** [All] Error 2
mingw32-make.exe[1]: Leaving directory `E:/WxWindows/projects_gnu/MatrixTest'
----------Build Ended----------
0 errors, 0 warnings