Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Compile single file
tiwag:
i don't see any sense in compiling a file without a project - what settings should be used as defaults ?
the only thing i can imagine, is to pop up a dialog, which presents you a list
of predefined and user defined template projects and asks to specify one of these to use.
BUT the least time i usually have to spend for a new project is setting up a project - can't really see any major effort.
kjliew:
While I am not against in implementing this feature, compiling a mere single file should not be bothered by modern IDE. The reason that we need an IDE is because we are dealing with real world development projects that have the source files organized in tree, and potentially the need to link with 3rd party SDK/Library. No such projects will ever be in single-file content. It's also a poor programming practice to lump everything into single file. In fact, if anyone really lump everything into one .cpp and .h files, he doesn't really need an IDE since everything can be referenced. He doesn't even need things such as code completion, class/struct reference/lookup etc. which usually help in quickly locating useful declarations.
Single file project is overkilled in using an IDE. I would rather use "gcc -o Hello Hello.cpp" to build and use Vim for editing.
darklordsatan:
--- Quote from: tiwag ---i don't see any sense in compiling a file without a project
--- End quote ---
Sometimes is handy, when you have a small piece of code and wanna compile it right away without the IDE asking you to create a project file... And what if you have a lot of small code snippets and need to compile them...
There are elaborate solutions, like creating the project, then adding a file, and copy+paste 24/7 for all the snippets, in the same file, but this is just tiring...
rickg22:
Stan's right. If we want newbies to use the IDE, we need to give them the tools they need to simplify learning.
tiwag:
--- Quote from: darklordsatan ---... And what if you have a lot of small code snippets and need to compile them...
--- End quote ---
i use a Test-Project where i add new modules with the code to test.
sometimes, ehen the code to test has it's own main() function, i add a new target to the Test-project.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version