Build problems rev. 5006

Discussion about CodeLite development process and patches
frank_frl
CodeLite Expert
Posts: 176
Joined: Sun Aug 17, 2008 2:45 pm
Contact:

Build problems rev. 5006

Post by frank_frl »

Hi Eran,

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
The last revision I builded before 5006 was 4984, which compiled without any errors with the same configuration. ( W7 64b, wxw 2.8.12, MinGW 4.5.2 TDM)

Any suggestions?

Regards

Frank
frank_frl
CodeLite Expert
Posts: 176
Joined: Sun Aug 17, 2008 2:45 pm
Contact:

Re: Build problems rev. 5006

Post by frank_frl »

Hi Eran,

I could build after adding '_WIN32_WINNT=0x501' to the CodeLite project preprocessor directives.
It seems that for some reason _WIN32_WINNT isn't defined anymore.


Regards

Frank
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Build problems rev. 5006

Post by eranif »

frank_frl wrote:It seems that for some reason _WIN32_WINNT isn't defined anymore.
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)

Eran
Make sure you have read the HOW TO POST thread
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Build problems rev. 5006

Post by eranif »

I fixed it in the code. Please give it a try

Eran
Make sure you have read the HOW TO POST thread
frank_frl
CodeLite Expert
Posts: 176
Joined: Sun Aug 17, 2008 2:45 pm
Contact:

Re: Build problems rev. 5006

Post by frank_frl »

Hi Eran,

I tried rev. 5007 now and it's the same problem, but if I put your changes before '#ifdef __WXMSW__' , it compiles, so I guess there is a similar problem with the __WXMSW__ define.

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"
But CL is not working then!
It hangs when closing and I can't compile anymore, strange error from mingw32-make.exe

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
Regards

Frank
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Build problems rev. 5006

Post by eranif »

I see some differences between our configurations:
- GCC 4.5 vs 4.4
- wx2.8.12 vs wx2.9.2

Is there any chance that you can switch to my configuration ? (when I will release codelite, it will be shipped with wx292 for MSW)

Eran
Make sure you have read the HOW TO POST thread
Post Reply