User forums > Using Code::Blocks
C::B crash (Settings-->Editor)
Ceniza:
Maybe apt-get install gcc-3.4 g++-3.4?
Beware it allows different versions to coexist and gcc, g++ and friends could be all symlinked to 4.0.
When going to compile Code::Blocks, force it to use gcc-3.4 and g++-3.4: CXX=g++-3.4 CC=gcc-3.4 CPP=cpp-3.4 ./configure (haven't tried though).
Zlika:
--- Quote from: Pecan on April 20, 2006, 08:30:28 pm ---There is a module in sdk/Projectfileoptionsdlg.cpp that
is being used as the constructor for LanguagesDef under
ubuntu gcc 4.0.2
What is this all about. NOTE: the "wxString name" declaration
is missing.
--- End quote ---
Yiannis took some functions of codestat to compute the number of comment/code lines for a particular file and display it in the "properties" menu of the selected file.
Pecan:
Ok, Yiannis can have it.
I've change CodeStats LanguageDef symbol to csLanguageDef
and the crash has gone away. The correct constructor is being called.
This still looks like a compiler err though.
EDIT:: Not a compiler err I'm thinking. Projectfileoptionsdlg.h is not being included
by CodeStat. LanguageDef is a structure in a .cpp and the other a
Class in CodeStats. How can it be being treated like a hidden constructor?.
But it IS....
Now... CodeStat still crashes on Linux at a new location.
It fails loading its resources in CodeStatConfigDlg::ReInitDialog(). And... it doesn't check to see if it failed, so it uses 0x0 as its txt_FileTypes address getting a SIGSEGV for its efforts.
Did this thing ever work on Linux?
I'm tired....
Michael:
Hello,
I think Pecan has solved the crash :D. I still have to test more in depth, but I got no more Settings-->Editors crash with codestats plugin :D. Moreover, codestats plugin works too without a crash :D.
To "solve" the problem, just:
--- Quote ---// some help functions and type (copied and adapted from the codestat plug-in)
struct LanguageDef
{
wxString name; <-- Add this!
wxArrayString ext;
wxString single_line_comment;
wxString multiple_line_comment[2];
};
--- End quote ---
Pecan, you save my day :). If you decide to visit Austria and/or Switzerland (Eventually Thailand too :)), let me know and I will pay at least a dinner :D.
Best wishes,
Michael
mandrav:
--- Quote from: Zlika on April 20, 2006, 09:12:25 pm ---Yiannis took some functions of codestat to compute the number of comment/code lines for a particular file and display it in the "properties" menu of the selected file.
--- End quote ---
No, it was not Yiannis. It was Lieven, IIRC...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version