Fixing a typo...
--- CodeBlocks_pristine/src/sdk/resources/auto_detect_compilers.xrc 2012-07-07 17:43:33.693614787 -0300
+++ patch/auto_detect_compilers.xrc 2012-07-07 18:25:07.678927628 -0300
@@ -8,7 +8,7 @@
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<object class="wxStaticText" name="ID_STATICTEXT2">
- <label>Note: After autor-detection, at least one compiler's master path is still empty and therefore invalid.
Inspect the list below and change the compiler's master path later in the compiler options.
Select you favourite default compiler here:</label>
+ <label>Note: After auto-detection, at least one compiler's master path is still empty and therefore invalid.
Inspect the list below and change the compiler's master path later in the compiler options.
Select you favourite default compiler here:</label>
</object>
<flag>wxALL|wxEXPAND|wxALIGN_LEFT|wxALIGN_TOP</flag>
<border>8</border>
Thanks for the great work, guys !
@Tim S.
Thank you for your efforts to help, it is appreciated. I have the settings below, setting the linker path does not make any difference in my case. I installed VS2010 to a non-default location as you can see (2nd partition on same HD, the C-partition was getting crowded). Not sure if XP vs. Win7 makes any difference.
<user_sets>
<msvc>
<NAME>
<str>
<![CDATA[MSVC]]>
</str>
</NAME>
<PARENT>
<str>
<![CDATA[msvc10]]>
</str>
</PARENT>
<INCLUDE_DIRS>
<str>
<![CDATA[C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include;D:\zzSystem\Program Files\Microsoft Visual Studio 10.0\VC\include;]]>
</str>
</INCLUDE_DIRS>
<RES_INCLUDE_DIRS>
<str>
<![CDATA[C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include;D:\zzSystem\Program Files\Microsoft Visual Studio 10.0\VC\include;]]>
</str>
</RES_INCLUDE_DIRS>
<LIBRARY_DIRS>
<str>
<![CDATA[C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib;D:\zzSystem\Program Files\Microsoft Visual Studio 10.0\VC\lib;]]>
</str>
</LIBRARY_DIRS>
<MASTER_PATH>
<str>
<![CDATA[D:\zzSystem\Program Files\Microsoft Visual Studio 10.0\VC]]>
</str>
</MASTER_PATH>
<EXTRA_PATHS>
<str>
<![CDATA[D:\zzSystem\Program Files\Microsoft Visual Studio 10.0\Common7\IDE;C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin;]]>
</str>
</EXTRA_PATHS>
</msvc>
</user_sets>
One thing I found which may have helped my endless series of hangs and delays with this version was that I opened default.conf and deleted very long lists of references to wxWidgets types under <HeaderFixup>. It reduced the size of default.conf from almost 500 KB to about 70KB. If the default.conf file is being saved/reloaded constantly (is it?), it might cause freeze-ups in the GUI for all I know, and that is what I have been seeing.
I just tried deleting MinGW again, and miracles, I don't get the yellow pop-up errors anymore after that..... I have also played around with disabling as many plugins as possible to see if that could fix it. See attached screenshot of my list. Perhaps one of the disabled ones were causing troubles.
I still get strange delays during compilation, but after reducing the size of the default.conf file at least the GUI is more responsive.
Found a problem:
The Code::Blocks project template for gtk doesn't work with new versions of gtk.
The gtk developers have added a new needed by default library.
After some experimenting I came up with a solution.
Script that needs to be modified is:
<install dir>\CodeBlocks\share\CodeBlocks\templates\wizard\gtk\wizard.script
The gdk-pixbuf-2.0 library needs to be added.
(In the file after line 124.)
Code needs to be added that does a check on the relative path name and if it's there adds it.
Code that needs to be added:
if( IO.DirectoryExists(GtkPathDefaultInc + wxFILE_SEP_PATH + _T("gdk-pixbuf-2.0")) ){
project.AddIncludeDir(GtkPathDefaultInc + wxFILE_SEP_PATH + _T("gdk-pixbuf-2.0"));
}
Adding the three lines of code solves the problem. Works with old and new versions of the gtk library.
Does this patch fix it?
Index: src/plugins/compilergcc/compilerMINGW.cpp
===================================================================
--- src/plugins/compilergcc/compilerMINGW.cpp (revision 8106)
+++ src/plugins/compilergcc/compilerMINGW.cpp (working copy)
@@ -178,7 +178,7 @@
m_Commands[(int)ctLinkConsoleExeCmd].push_back(CompilerTool(_T("$linker $libdirs -o $exe_output $link_objects $link_resobjects $link_options $libs")));
if (platform::windows)
{
- m_Commands[(int)ctLinkNativeCmd].push_back(CompilerTool(_T("$linker $libdirs -o $exe_output $link_objects $link_resobjects $link_options $libs --subsystem,native")));
+ m_Commands[(int)ctLinkNativeCmd].push_back(CompilerTool(_T("$linker $libdirs -o $exe_output $link_objects $link_resobjects $link_options $libs -Wl,--subsystem,native")));
m_Commands[(int)ctLinkExeCmd].push_back(CompilerTool(_T("$linker $libdirs -o $exe_output $link_objects $link_resobjects $link_options $libs -mwindows")));
m_Commands[(int)ctLinkDynamicCmd].push_back(CompilerTool(_T("$linker -shared -Wl,--output-def=$def_output -Wl,--out-implib=$static_output -Wl,--dll $libdirs $link_objects $link_resobjects -o $exe_output $link_options $libs")));
}