User forums > Nightly builds

The 03 January 2008 build (4771) is out.

<< < (6/8) > >>

wobien:

--- Code: ---Index: src/plugins/classwizard/classwizarddlg.cpp
===================================================================
--- src/plugins/classwizard/classwizarddlg.cpp (revision 4783)
+++ src/plugins/classwizard/classwizarddlg.cpp (working copy)
@@ -227,6 +227,7 @@
         buffer << eolstr;
     }
 
+    if (!AncestorFilename.IsSameAs(_T("<>")))
     if (!AncestorFilename.IsEmpty())
     {
         buffer << _T("#include ") << AncestorFilename << eolstr;

--- End code ---
My first little patch. It prevents the classwizard to insert:
--- Code: ---#include <>
--- End code ---
in your header file if you don't use inheritance.

Acki:

--- Quote from: olaoni on January 06, 2008, 01:42:21 am ---You might find it handy to check Settings | Environment | Check & Set File association (Windows Only)
And ensure that the files which you are double clicking are associated correctly to C::B.

--- End quote ---
thanks for this hint, but I'm not that stupid...  :lol:
I'm working with computers for more than 20 years and so I know how file association works... ;)

no, I think the bug has to do with the "Symbols browser" or something that depends on it, because everything works fine if the "Symbols browser" is disabled... ;)

olaoni:

--- Quote from: Acki on January 06, 2008, 05:54:51 pm ---
--- Quote from: olaoni on January 06, 2008, 01:42:21 am ---You might find it handy to check Settings | Environment | Check & Set File association (Windows Only)
And ensure that the files which you are double clicking are associated correctly to C::B.

--- End quote ---
thanks for this hint, but I'm not that stupid...  :lol:
I'm working with computers for more than 20 years and so I know how file association works... ;)

no, I think the bug has to do with the "Symbols browser" or something that depends on it, because everything works fine if the "Symbols browser" is disabled... ;)

--- End quote ---

Please accept my appology. I did not imply any stupidity  :(. In my past experience I had sometimes resulted into finding very complicated solutions, and over looking simple ones.

Moreover I did have a problem of C::B crashing when I double click on the *cbp file. After playing around with various setting I found the file association was not set, thats why I offered the suggestion.

Regards
Ola

Jenna:

--- Quote from: Darck on January 06, 2008, 03:30:21 pm ---this is hopeless. when i want install one thing it needs another newer. And this another has dependency on another package with newer version. It's endless circle. I would have to install Ubuntu hardy to have possibility running Code::Blocks.

Is there any code::blocks which can run with libwxgtk2.8-02.8.4.0-0ubuntu3 instead of (>= 2.8.7)

I can't install libwxgtk2.8-0_2.8.7.1-0_i386.deb - it has too many dependencies!

--- End quote ---
Which version of Ubuntu do you use ?
There are wxWidgets2.8.7 packages for dapper, feisty and gutsy and 2.8.6 packages for edgy on the wxWidgets-server (look here how to install them).
If none of the versions work you can try to build it from source.
The Ubuntu-sources are on the same server.
If you have build-dependency problems when you use "dpkg-buildpackage", install all the missing packages in the newest version you get for your Ubuntu-version.
And if you have done this (don't try it without) you can run "dpkg-buildpackage -d" to override the dependencies on special versions. This might work. You can also try to fix the "debian/control"-file to work with your Ubuntu-suite.
Normally a wxWidgets-version for an older Ubuntu-suite should work with yours.
I use wxWidgets for debian-edge on edge, lenny, sid and experimental without problems.

killerbot:

--- Quote from: wobien on January 06, 2008, 05:09:27 pm ---
--- Code: ---Index: src/plugins/classwizard/classwizarddlg.cpp
===================================================================
--- src/plugins/classwizard/classwizarddlg.cpp (revision 4783)
+++ src/plugins/classwizard/classwizarddlg.cpp (working copy)
@@ -227,6 +227,7 @@
         buffer << eolstr;
     }
 
+    if (!AncestorFilename.IsSameAs(_T("<>")))
     if (!AncestorFilename.IsEmpty())
     {
         buffer << _T("#include ") << AncestorFilename << eolstr;

--- End code ---
My first little patch. It prevents the classwizard to insert:
--- Code: ---#include <>
--- End code ---
in your header file if you don't use inheritance.

--- End quote ---

applied thanks

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version