User forums > Using Code::Blocks

C::B crash (Settings-->Editor)

<< < (10/16) > >>

Pecan:
I am getting really bad results attempting to shoot this constructor
bug inside CodeStats plugin. The compiler is not constructing Languages_Def class correctly. It's calling the wxArrayString to construct the "name" wxString.

And... when I add a constructor to Languages_Def class, it's never
invoked under linux. But the same code executes correctly under windows.

My ubuntu 510 is using:
gcc version 4.0.2 20050808 (prerelease ) (Ubuntu 4.0.1-4 ubuntu9)

Questions:
Are all Linux users getting the Codestat crash, or just Ubuntu users?
What gcc compiler version are *non-crash* Linux users using?
Is there another gcc for Ubuntu that I can test with?

thanks
pecan

Ceniza:
There's GCC 3.4.3: http://archive.ubuntu.com/ubuntu/pool/universe/g/gcc-3.4/

Pecan:

--- Quote from: Ceniza on April 20, 2006, 08:07:53 pm ---There's GCC 3.4.3: http://archive.ubuntu.com/ubuntu/pool/universe/g/gcc-3.4/

--- End quote ---

Is there an "apt-get" type command to install this?

thanks
pecan

Michael:

--- Quote from: Pecan on April 20, 2006, 08:12:42 pm ---
--- Quote from: Ceniza on April 20, 2006, 08:07:53 pm ---There's GCC 3.4.3: http://archive.ubuntu.com/ubuntu/pool/universe/g/gcc-3.4/

--- End quote ---

Is there an "apt-get" type command to install this?

--- End quote ---

I would use Synaptic Package Manager instead :). Anyway, I am not sure that it is a compiler issue. My colleague on Kubuntu 5.10, running the .deb compiled by me, has not Setting-->Editor crash (and I have tried several times).

May be the problems is related or to some packages I have installed and that make conflicts. The wxGTK libraries that I use are the same as him (anway, I will ask him just to be sure).

Best wishes,
Michael

Pecan:
There is a module in sdk/Projectfileoptionsdlg.cpp that
is being used as the constructor for LanguagesDef under
ubuntu gcc 4.0.2


--- Code: ---#include "projectfileoptionsdlg.h"
#include <wx/slider.h>
#include <wx/textfile.h>

BEGIN_EVENT_TABLE(ProjectFileOptionsDlg, wxDialog)
EVT_CHOICE(-1, ProjectFileOptionsDlg::OnCompilerCombo)
EVT_UPDATE_UI(-1, ProjectFileOptionsDlg::OnUpdateUI)
END_EVENT_TABLE()

// some help functions and type (copied and adapted from the codestat plug-in)
struct LanguageDef
{
wxArrayString ext;
wxString single_line_comment;
wxString multiple_line_comment[2];
};


--- End code ---

What is this all about. NOTE: the "wxString name" declaration
is missing.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version