User forums > Using Code::Blocks
SConstruct (Scons)
johne53:
--- Quote from: oBFusCATed on July 31, 2007, 03:01:43 pm ---To be sure what is happening try to make scons and C::B print the commands they are executing (eg: gcc .... ).
For scons I don't know how to do it, but for C::B there is options in options->compiler & debugger -> other -> full compiler output ( I'm not 100% sure that the menus are named that, no C::B in front of me).
--- End quote ---
I don't understand.... since I updated to the latest version (today) I seem to have lost the ability to select 'full compiler output'. I remember it being quite simple to find but I've now been searching for about half an hour and I can't find that setting any more. Can someone please remind me how to get to it?
[Edit...] It's okay, I found it - but to my dismay, C::B is still calling the gcc compiler for a ".cc" file! I'm running the build from 5th August, svn 4349. Will the change only happen for new projects or should it have worked for an existing project? I don't want to have to change that 'Advanced' setting for literally thousands of source files....
Biplab:
--- Quote from: Ceniza on August 04, 2007, 11:37:43 pm ---I see you committed that change. I didn't want to do it because Don Corleone wasn't around to ask him. After all, that plugin is one of his "babies" :wink:
Let's hope the Don agree with that change :)
--- End quote ---
I hope so. But gcc manual says .cc belongs to C++. So I don't see any harm with this change. ;)
johne53:
--- Quote from: Ceniza on August 04, 2007, 11:37:43 pm ---I see you committed that change. I didn't want to do it because Don Corleone wasn't around to ask him. After all, that plugin is one of his "babies" :wink:
Let's hope the Don agree with that change :)
--- End quote ---
From simple experimentation, I don't think that the change is working properly (although I guess that depends on how you define "properly").
As far as I can tell, if I add some new ".cc" files to a project, they'll now have their 'Compiler Variable' set to CPP (this can be found in the Advanced Settings dialog for each source file). This causes them to get compiled correctly, using the g++ compiler (although it could be argued that that's just a happy accident). However, pre-existing files still retain their old setting of CC - which, from the behaviour that I'm observing, is still being compiled using the wrong compiler. In effect, the compiler used for ".cc" files will depend on the age of the project - not on the ".cc" extension. Can anyone confirm/deny/comment on whether or not that was the expected behaviour?
Navigation
[0] Message Index
[*] Previous page
Go to full version