News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

The 21 September 2008 build (5208) is out.

Started by killerbot, September 21, 2008, 08:07:53 PM

Previous topic - Next topic

Jenna

Quote from: hangl on October 06, 2008, 03:27:55 AM
CB is a great work ,it is my first choice.but I face some problems ,when I compile a project,CB ofen crashed!sadly I have to say it crashed too may times ,I did not do special work ,just modified code and recompiled ,sometimes it crased, sometimes not ,maybe 20~30% .

I am using nightly build 5208,winxp sp2 mingw Gcc 4.2.3

crash information is attached!


Do you know if the crash happens, if the code is error-free, or only while parsing output from compiler including error-messages ?

killerbot

I can confirm this, and Morton also suffers from this. It seems to happen when there are errors during the compilation step.

jfouche

Hi

You can do like me : don't make error while you 're coding  :P
--
Jérémie

stahta01

#33
Patch needed to build current SVN under Windows when not using PCH.

The unpatched code built OK with PCH using MinGW GCC 3.4.5, 4.2.4, and 4.3.2 (Last two where TDM Builds)

Tim S


Index: src/plugins/contrib/wxSmith/wxsresourcetree.cpp
===================================================================
--- src/plugins/contrib/wxSmith/wxsresourcetree.cpp (revision 5245)
+++ src/plugins/contrib/wxSmith/wxsresourcetree.cpp (working copy)
@@ -30,6 +30,11 @@
#include "configmanager.h"
#include "globals.h"

+#if defined(__WXMSW__) && defined(LoadImage)
+    // Fix Windows winuser.h Header define of LoadImage.
+    #undef LoadImage
+#endif
+
namespace
{
     class wxsResourceTreeProjectData: public wxsResourceTreeItemData
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

killerbot

Quote from: stahta01 on October 08, 2008, 02:09:56 AM
Patch needed to build current SVN under Windows when not using PCH.

The unpatched code built OK with PCH using MinGW GCC 3.4.5, 4.2.4, and 4.3.2 (Last two where TDM Builds)

Tim S


Index: src/plugins/contrib/wxSmith/wxsresourcetree.cpp
===================================================================
--- src/plugins/contrib/wxSmith/wxsresourcetree.cpp (revision 5245)
+++ src/plugins/contrib/wxSmith/wxsresourcetree.cpp (working copy)
@@ -30,6 +30,11 @@
#include "configmanager.h"
#include "globals.h"

+#if defined(__WXMSW__) && defined(LoadImage)
+    // Fix Windows winuser.h Header define of LoadImage.
+    #undef LoadImage
+#endif
+
namespace
{
     class wxsResourceTreeProjectData: public wxsResourceTreeItemData


I should have listened to you, I was adding these from your patch in berlios 1 by 1 till it compiled, but that was on a system using pch. Will do it today.

killerbot


Grom

What about the neew nightly build? Do you have any plans to update the wxSmith
gcc+winXP+suse.

killerbot


gd_on

For a (the ?) next nightly, I have found a few strings that cause problems when you want to localize C::B (in french in may case). I wrote an "how to" in the forum Help Wanted/Codeblocks Translation...

Problems on some portions of codes, using _T and not _ to enter strings that normally should be translated in localized versions of C::B :

within src/plugins/projectsimporter/projectsimporter.cpp
line 103 should be :
        fileMenu->Insert(++id, wxNewId(), _("&Import project"), m_Menu);

within sdk/pluginsconfigurationdlg.cpp
line 99 should be :
    initialInfo << _("when performing any operation on it...");
line 107 should be :
      initialInfo << _("problematic plugins. Enable plugins at will now...");


within envvars_cfgdlg.h
line 31 is
   return _T("Environment variables");
but if is
   return _("Environment variables");
translation is not done anyway apparently ! May be the problem is not here ! :(

gd_on
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

killerbot

Quote from: gd_on on October 11, 2008, 09:38:42 AM
For a (the ?) next nightly, I have found a few strings that cause problems when you want to localize C::B (in french in may case). I wrote an "how to" in the forum Help Wanted/Codeblocks Translation...

Problems on some portions of codes, using _T and not _ to enter strings that normally should be translated in localized versions of C::B :

within src/plugins/projectsimporter/projectsimporter.cpp
line 103 should be :
        fileMenu->Insert(++id, wxNewId(), _("&Import project"), m_Menu);

within sdk/pluginsconfigurationdlg.cpp
line 99 should be :
    initialInfo << _("when performing any operation on it...");
line 107 should be :
      initialInfo << _("problematic plugins. Enable plugins at will now...");


within envvars_cfgdlg.h
line 31 is
   return _T("Environment variables");
but if is
   return _("Environment variables");
translation is not done anyway apparently ! May be the problem is not here ! :(

gd_on

DONE.