GNOME Bugzilla – Bug 572805
Cannot generate new C++ class
Last modified: 2009-02-25 12:24:35 UTC
Please describe the problem: I am using Anjuta with Ubuntu 8.10. I cannot use the C++ class generator to create a new class in my project. The problem is the same as the one described here: https://bugs.launchpad.net/ubuntu/+source/anjuta/+bug/328079 Steps to reproduce: I am using Anjuta with Ubuntu 8.10 and I have found a problem with the creation of a new C++ class. 1. I opened Anjuta and generated a new project: New->Project 2. Following the wizard I created a generic c++ application 3. In the wizard the destination directory was set to a newly generated dir 4. After creating the project I add a new c++ class: New->C++/GObject Class 5. Giving it a name and press Create 6. I select the target to which I want to add it. Actual results: An error appears: Failed to execute autogen: Could not open file "/home/mjumbewu/file:///home/mjumbewu/Programming/compbio/src/sequence-aligner.hpp": No such file or directory Also, the source file names "sequence-aligner.cpp" and "sequence-aligner.hpp" are added to the target, but the files are never created in the directory. Expected results: A new class should be created in my project Does this happen every time? Yes Other information:
Hmm, works for me (with svn trunk, could be a problem in 2.24.x). Which target did you choose?
I chose the main target for the project (in this case 'compbio'). It's version 2.24.1, if that helps.
OK, that works in svn trunk. Would be nice if you could check with 2.25.902 or at least when a new Ubuntu package is out. Thanks!
I cobbled together a deb and it turns out that adding classes does work in 2.25.902. Comes with a few other niceties too :). Hopefully my deb will be gracefully upgraded with the next Ubuntu upgrade. Thanks much. (someone should let those fine bug-filers over at launchpad know too)
Thanks a lot for checking! This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.