User forums > General (but related to Code::Blocks)
Why I have to kill the compilers before C::B start Help me
luisalberto:
I am using Code::blocks rev 6080 on Windows Vista Basic. I have Mingw 4.4.0 installed in defaults directories and the path pointing to C:\Mingw\bin. I like Codeblocks its a great IDE. But right now since previous nightly builds I have the following problem. Nearly every time I start Codeblocks I have to start at the same time Task Manager and if CodeBlocks check the compiler version or directories mingw32-c++ and mingw32-ccc are wake up from disk. That is not bad because they are the compilers except that Codeblcoks is stop from starting or freeze not until I kill in Task Manager one or both compilers. Then and only when the compilers are gone is that Code::blocks can start. I have deleted the hidden directories where Codeblcks write its configuration but to no avail. Codeblocks always ask for the presence of Mingw compilers and in the process C::B is hanged. I have look in all the configurations looking for a wxradioButton to uncheck but today I have not been able to start C::B normally as before. Please help me.
Jenna:
Normally C::B calls the c-compiler to get the version.
Please post the exaxt version string of the executable you have set as the c-compiler on the toolchain-tab.
By the way: the master-path of the compiler should be "c:\Mingw" in your case (without the "/bin").
luisalberto:
This is the code that C::B execute on version 8.02 I do not know if it has changed.
wxString masterpath = m_MasterPath;
if (masterpath.IsEmpty())
{
if (platform::windows)
masterpath = _T("C:\\MinGW");
else
masterpath = _T("/usr");
}
wxString gcc_command = masterpath + sep + _T("bin") + sep + m_Programs.C;
if (!wxFileExists(gcc_command))
return;
long result = wxExecute(gcc_command + _T(" --version"), output, errors, wxEXEC_NODISABLE);
The documentation about wxExecute() says that wxExecute must include wxEXEC_ASYNC or wxEXEC_SYNC and can also include wxEXEC_NOHIDE, wxEXEC_MAKE_GROUP_LEADER (in either case) or wxEXEC_NODISABLE and wxEXEC_NOEVENTS or wxEXEC_BLOCK.
The exact version of the string is c:\MinGW as the master path. I have included "bin" in the environment variable PATH=,,,
Jenna:
--- Quote from: luisalberto on January 14, 2010, 02:00:41 pm --- The documentation about wxExecute() says that wxExecute must include wxEXEC_ASYNC or wxEXEC_SYNC and can also include wxEXEC_NOHIDE, wxEXEC_MAKE_GROUP_LEADER (in either case) or wxEXEC_NODISABLE and wxEXEC_NOEVENTS or wxEXEC_BLOCK.
--- End quote ---
That's not correct
--- Quote from: wxWidgets 2.8.10 documentation ---Finally, you may use the third overloaded version of this function to execute a process (always synchronously, the contents of flags is or'd with wxEXEC_SYNC) and capture its output in the array output. The fourth version adds the possibility to additionally capture the messages from standard error output in the errors array.
--- End quote ---
That's the the version we use here.
--- Quote from: luisalberto on January 14, 2010, 02:00:41 pm ---The exact version of the string is c:\MinGW as the master path. I have included "bin" in the environment variable PATH=,,,
--- End quote ---
I meant the version string of the compiler (if you type "gcc -v" or whatever you have as c-compiler in the toolchain on the console).
luisalberto:
This is the Output capture in my program when i add the -v switch to the makefile.mk I capture the output in a wxTextCtrl
Project : Windows Application
Compiler : MinGW Compiler (called directly)
Directory : C:\TEMP2\Win2\Connect
------ Build started: Project: Connect.wxp, Configuration: Release Win32 ------
Starting job C:\MinGW\bin\mingw32-make.exe -f "C:\TEMP2\Win2\Connect\Connect.mk" clean all CONFIG=release
if exist VCRelease\*.o del VCRelease\*.o
if exist VCRelease\*.res del VCRelease\*.res
if exist VCRelease\*.d del VCRelease\*.d
if exist VCRelease\Connect.exe del VCRelease\Connect.exe
C:\MinGW\bin\mingw32-g++.exe -c -v Connect.cpp -pipe -mthreads -Wall -Wextra -O2 -Wshadow -fexceptions -DWIN32 -D__GNUWIN32__ -DHAVE_W32API_H -DNOPCH -D_WINDOWS -D_WIN32 -DNDEBUG -MTVCRelease\Connect.o -MFVCRelease\Connect.o.d -MD -MP -o VCRelease\Connect.o -I. -I"C:\MinGW\include" -I"C:\MinGW\mingw32\include" -I"C:\MinGW\lib\gcc\mingw32\4.4.0\include"
Using built-in specs.
Target: mingw32
Configured with: ../gcc-4.4.0/configure --enable-languages=c,ada,c++,fortran,java,objc,obj-c++ --disable-sjlj-exceptions --enable-shared --enable-libgcj --enable-libgomp --with-dwarf2 --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --prefix=/mingw --with-gmp=/mingw/src/gmp/root --with-mpfr=/mingw/src/mpfr/root --build=mingw32
Thread model: win32
gcc version 4.4.0 (GCC)
COLLECT_GCC_OPTIONS='-c' '-v' '-pipe' '-mthreads' '-Wall' '-Wextra' '-O2' '-Wshadow' '-fexceptions' '-DWIN32' '-D__GNUWIN32__' '-DHAVE_W32API_H' '-DNOPCH' '-D_WINDOWS' '-D_WIN32' '-DNDEBUG' '-MTVCRelease\Connect.o' '-MFVCRelease\Connect.o.d' '-MD' '-MP' '-o' 'VCRelease\Connect.o' '-I.' '-IC:\MinGW\include' '-IC:\MinGW\mingw32\include' '-IC:\MinGW\lib\gcc\mingw32\4.4.0\include' '-shared-libgcc' '-mtune=i386'
c:/mingw/bin/../libexec/gcc/mingw32/4.4.0/cc1plus.exe -quiet -v -I. -IC:\MinGW\include -IC:\MinGW\mingw32\include -IC:\MinGW\lib\gcc\mingw32\4.4.0\include -iprefix c:\mingw\bin\../lib/gcc/mingw32/4.4.0/ -MD VCRelease\Connect.d -MFVCRelease\Connect.o.d -MP -MTVCRelease\Connect.o -MQ VCRelease\Connect.o -D_MT -DWIN32 -D__GNUWIN32__ -DHAVE_W32API_H -DNOPCH -D_WINDOWS -D_WIN32 -DNDEBUG Connect.cpp -quiet -dumpbase Connect.cpp -mthreads -mtune=i386 -auxbase-strip VCRelease\Connect.o -O2 -Wall -Wextra -Wshadow -version -fexceptions -o - |
c:/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/as.exe -o VCRelease\Connect.o
ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.4.0/include/c++"
ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.4.0/include/c++/mingw32"
ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.4.0/include/c++/backward"
ignoring duplicate directory "/mingw/lib/gcc/mingw32/4.4.0/../../../../include"
ignoring duplicate directory "c:/mingw/lib/gcc/../../include"
ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.4.0/include"
ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.4.0/include-fixed"
ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.4.0/../../../../mingw32/include"
ignoring duplicate directory "/mingw/include"
ignoring duplicate directory "C:\MinGW\include"
as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "C:\MinGW\mingw32\include"
as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "C:\MinGW\lib\gcc\mingw32\4.4.0\include"
as it is a non-system directory that duplicates a system directory
#include "..." search starts here:
#include <...> search starts here:
.
c:\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++
c:\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/mingw32
c:\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/backward
c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include
c:\mingw\bin\../lib/gcc/mingw32/4.4.0/include
windres.exe -i Connect.rc --input-format=rc -O coff -o VCRelease\Connect.res -I. -I"C:\MinGW\include" -I"C:\MinGW\mingw32\include" -I"C:\MinGW\lib\gcc\mingw32\4.4.0\include" --define NOPCH
c:\mingw\bin\../lib/gcc/mingw32/4.4.0/include-fixed
c:\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../mingw32/include
End of search list.
GNU C++ (GCC) version 4.4.0 (mingw32)
compiled by GNU C version 4.4.0, GMP version 4.2.4, MPFR version 2.4.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 0109de29f5e0302b85b321b8683f0ec8
Connect.cpp:33: warning: unused parameter 'hPrevInstance'
Connect.cpp:33: warning: unused parameter 'lpszCmdLine'
Connect.cpp:149: warning: unused parameter 'hwndCtl'
Connect.cpp:149: warning: unused parameter 'codeNotify'
Connect.cpp:164: warning: unused parameter 'hwnd'
Connect.cpp:170: warning: unused parameter 'lParam'
COMPILER_PATH=c:/mingw/bin/../libexec/gcc/mingw32/4.4.0/;c:/mingw/bin/../libexec/gcc/;c:/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/
LIBRARY_PATH=c:/mingw/bin/../lib/gcc/mingw32/4.4.0/;c:/mingw/bin/../lib/gcc/;c:/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/lib/;c:/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../;/mingw/lib/
COLLECT_GCC_OPTIONS='-c' '-v' '-pipe' '-mthreads' '-Wall' '-Wextra' '-O2' '-Wshadow' '-fexceptions' '-DWIN32' '-D__GNUWIN32__' '-DHAVE_W32API_H' '-DNOPCH' '-D_WINDOWS' '-D_WIN32' '-DNDEBUG' '-MTVCRelease\Connect.o' '-MFVCRelease\Connect.o.d' '-MD' '-MP' '-o' 'VCRelease\Connect.o' '-I.' '-IC:\MinGW\include' '-IC:\MinGW\mingw32\include' '-IC:\MinGW\lib\gcc\mingw32\4.4.0\include' '-shared-libgcc' '-mtune=i386'
C:\MinGW\bin\mingw32-g++.exe VCRelease\Connect.o VCRelease\Connect.res -L"C:\MinGW\lib" -L"C:\MinGW\lib\gcc\mingw32\4.4.0" -o VCRelease\Connect.exe -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 -lodbccp32 -lshlwapi -s -Wl,--subsystem,windows -mwindows
Ended job
Job took 1821 ms
File Connect.exe size is 62 kBytes
Connect.wxp - 0 error(s), 6 warning(s)
========== Rebuild All: 1 succeeded, 0 failed ==========
Process 4476 terminated with exit code 0.
Navigation
[0] Message Index
[#] Next page
Go to full version