User forums > Using Code::Blocks

Various questions and feedback...

(1/6) > >>

Funto:
Hi all,

I'm part of a project where we develop a game and a game engine, which is for the moment about 15,000 lines of code.
We use Code::Blocks 8.02 as the IDE, SCons as the build tool ans Ubuntu as the developping platform. For integrating SCons with Code::Blocks, we make use of the "Use custom Makefile" feature, with a Makefile which looks like :

--- Code: ---all:
   scons
release:
   scons
debug:
   scons debug=1
cleanrelease:
   scons -c
cleandebug:
   scons debug=1 -c

--- End code ---

It works well, however, when we get a long compilation error (for example, when it is related to the STL ^^), the log doesn't fit in the "Build messages" pane, and we have to rebuild it from the console in order to see the errors :( Is this a solved problem in the SVN version ? It would be very nice :)

Also :
- when I change the "Settings->Environment->General settings->Terminal to launch console programs" from "xterm -T $TITLE -e" to "gnome-terminal --title=$TITLE -e", or even "gnome-terminal -e", I get a console window which closes as soon as it opened, what could be the reason for that ? (NB : when launching with xterm, I get my OpenGL window which waits for me to press escape). I don't want to keep with xterm as it is impossible to do any copy/paste (or is this possible and I didn't find it ?)

- when debugging my project with GDB, when I want to use the "Find implementation" right click shortcut, the right click menu disappears less that 1 second after it appeared, because of debugging info (debug symbols or whatever) ; I have to be very fast in order to get the menu entry :D

- is it possible to log as I want the result of the execution of my program to some stdout.txt and stderr.txt file, from Code::Blocks, without having to change the project or the editor"s settings ? Or better, would it be possible to get this file loaded automatically into Code::Blocks as the execution of the program finishes ?

- as for the moment, when having a long log in a file, I use gedit to look at the logs as its "search" feature highlights all the occurences of the word in the file. Would it be possible to have such a "highlight all occurences of this word" feature into Code::Blocks ?

- in our project, we use a file structure which separates "src/" and "include/", but Code::Blocks also separates them in "Sources" and "Headers", so I get "Sources->src" in the project. Is it possible not to use such an automated ordering ?

- a cool feature of Code::Blocks is that it indicates the current namespace we are working in in a greyed toolbar ; however, it is not always up to date, and we had 2 classes "DebugCamera" and "BlenderCamera", and a friend of mine coded in the wrong class because the toolbar didn't indicate the right namespace...:(

- a very cool feature which lacks and would be very simple to add (or I didn't see that ?) : it would be very nice to be able to open a file which is part of the project just by writing its name, just as we can launch a program in GNOME using the Alt+F2 and typing its name :)

- the behavior of the tabs corresponding to the opened files can be very annoying (I don't manage to reproduce the behavior right now, sorry ^^). Would it be possible to customize this a little more, just like Firefox ? A very interesting Firefox extension is TabMixPlus, which permits having up to 3 lines of tabs ; something like this would be very cool :)

- the code completion doesn't work always very well (but I know that coding a good code completion must be very difficult ^^) ; particularly, I don't get any autocompletion concerning OpenGL nor GLFW, though I mentionned "/usr/include/GL" in my project's "C/C++ parser options" :(


Wow, that's a long post ^^

Thanks for those who will have the bravery to read it entirely, and thanks for the IDE :)

EDIT : sorry, yet another thing, but I suppose this is due to wxWidgets : would it be possible to be able to expand a folder in the Project browser just by double-clicking on the folder's name, instead of having to click exactly on the left arrow...? ^^

mariocup:
Hi Funto,


--- Quote from: Funto on July 18, 2008, 02:28:35 pm ---- in our project, we use a file structure which separates "src/" and "include/", but Code::Blocks also separates them in "Sources" and "Headers", so I get "Sources->src" in the project. Is it possible not to use such an automated ordering ?

--- End quote ---

you can use the menu Project->Project Tree and disable "Categorize by file types". You can also manage and add new file types.

Bye,

Mario

Jenna:
 Various questions various answers  :roll:


--- Quote from: Funto on July 18, 2008, 02:28:35 pm ---- when I change the "Settings->Environment->General settings->Terminal to launch console programs" from "xterm -T $TITLE -e" to "gnome-terminal --title=$TITLE -e", or even "gnome-terminal -e", I get a console window which closes as soon as it opened, what could be the reason for that ? (NB : when launching with xterm, I get my OpenGL window which waits for me to press escape). I don't want to keep with xterm as it is impossible to do any copy/paste (or is this possible and I didn't find it ?)

--- End quote ---

If you turn on full commandline logging you should see which instruction is really used and what goes wrong: "Settings -> Compiler and debugger -> Global Compiler settings -> other settings (rightmost tab) -> Compiler Logging:"

xterm can copy and paste at least with highlighting the text with left mouse button pressed and paste with the middle mouse button.

MortenMacFly:

--- Quote from: Funto on July 18, 2008, 02:28:35 pm ---- a cool feature of Code::Blocks is that it indicates the current namespace we are working in in a greyed toolbar ; however, it is not always up to date, and we had 2 classes "DebugCamera" and "BlenderCamera", and a friend of mine coded in the wrong class because the toolbar didn't indicate the right namespace...:(

--- End quote ---
I cannot reproduce. Do you have a step-by-step instruction for such cases?! For me it "just works".


--- Quote from: Funto on July 18, 2008, 02:28:35 pm ---EDIT : sorry, yet another thing, but I suppose this is due to wxWidgets : would it be possible to be able to expand a folder in the Project browser just by double-clicking on the folder's name, instead of having to click exactly on the left arrow...? ^^

--- End quote ---
I don't understand. What "left arrow"? I just have a "plus" there for folder and can open them via double-click already...?!

Funto:
mariocup >> thanks, I've just done that, it's ok :)

jens >> thanks also :) In fact, I'm already in full compiler logging ^^ I looked more in detail at gnome-terminal's options, and in fact gnome-terminal's "-e" option needs a quoted string ; however, the "-x" option uses the rest of the command line, so finally I put "gnome-terminal --title=$TITLE -x" and it works like a charm :) And thanks for the xterm trick :) In fact it also works with most UNIX applications, like gedit for example, but it's not the "real" copy-paste, as it uses a different buffer and is invalidated as soon as the text is deselected.

MortenMacFly >> are you using Windows ? (as you said "plus"...). I'm using Ubuntu and wxGTK, and when I double-click on the folder's name, it doesn't open ^^.

Navigation

[0] Message Index

[#] Next page

Go to full version