News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Compile single file

Started by Ceniza, July 14, 2005, 11:07:44 PM

Previous topic - Next topic

darklordsatan

Well tiwag, you really have it going on there. But notice we are not talking about here in regards of a newbie specific feature, but something that could help many advanced users too.
I agree with you when you say you dont like it... well I do and I think many people do as well.

Perhaps what you say about docs.. well thats unfortunately the way most open source apps are nowadays - with a lack of documentation. Probably someone should take care of starting documenting c::b deeply... that should do it for a long-term project. And this single-file-compile should definitely worth a section in there...

Now, to follow your pace, probably a message box with a warning could be shown every time the user would try to compile an orphan file, with an option (perhaps a checkbox?) to "never show this warning again". The warning would say something relating how compiling a file without belonging to a project could take to unresolved linker errors and such, and that the user shouldnt bug the authors about this... (or RTFM , in case there was one... :) )

David Perfors

Documentation is something that should grow, I think we should start with it as soon as possible (I will help if I can) but where do we store it? in the wiki?
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

darklordsatan

I was meaning more of a .chm file for instance, bundled with the installation, but I guess a first step would be to put it in the wiki (perhaps to serve as a storage server, and so people can edit typos, improve articles and stuff), and when one article is considered to be "stable", then it could be added to the main help file. The problem that might arise in this schema would probably be the formatting...

David Perfors

it is a problem, I can't export wiki pages... (as far as I can see, perhaps an admin is able to do it?) (I opened another topic about documentation ;))
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

mandrav

Back to the topic, I just added the ability to compile a single file not belonging to a project.
It's already in CVS.
Only thing, it doesn't work with "Compile" but with "Compile current file". I think this makes it more apparent...

Yiannis.
Be patient!
This bug will be fixed soon...

darklordsatan

That is great Yiannis, thanks; and yeah, the "compile current file" is more appropiate than "compile"

rickg22

Yay! :) Does it link the file too? Will it be in 1.0?

mandrav

Quote from: rickg22Yay! :) Does it link the file too? Will it be in 1.0?
Yes and yes.

Yiannis.
Be patient!
This bug will be fixed soon...

Ceniza

Bah, I just tried something and it didn't work.

Code::Blocks compiles a single file without problems but if I set options in the compiler (flags, defines, ...) it won't use them.

Global compiler and linker options MUST be used when compiling a single file too.

Should I add I'm testing that with Code::Blocks HEAD? Haven't tried with VERSION_1.

I would really like to see this little bug fixed soon  :(

rickg22

I don't know how that works :( The compiler plugin is like an alien beast to me. And since Yiannis is still on vacation, I need your help, guys...