User forums > Using Code::Blocks
how to compile many files.c
(1/1)
bsartini76:
Hi,
I am learning how to use Code::Blocks and I've read tutorials, but I didn't found how to compile many source codes. It shows how to compile just one "main.c". I have an algorithm which has 4 files.c and they are called by the "main", which has another name, not main.
Do I have to put this name "main.c" in order to compile or can I work with its original name? Or do I have to change the calls that other files do, when they process and return the values to the main file?
All the files.c have to be in Source in the project?
Thank you in advance.
MortenMacFly:
--- Quote from: bsartini76 on December 27, 2011, 04:21:54 pm ---All the files.c have to be in Source in the project?
--- End quote ---
Yes, single file compilation supports to compile only a ... erm ... single file. ;-)
For everything else you need a project.
Navigation
[0] Message Index
Go to full version