Mix different C source files into a single one

Grant Edwards grante at visi.com
Sat Dec 29 17:02:40 EST 2007


On 2007-12-29, Horacius ReX <horacius.rex at gmail.com> wrote:

> I have a C program split into different source files. I am
> trying a new compiler and for some reason it only accepts a
> single source file.

That's pretty much the way they all work.

> So I need to "mix" all my different C source files into a
> single one.

You compile them individually, then you link the object files
together.

> Do you know about some type of python script able to do this
> kind of task ?

$ man make

-- 
Grant




More information about the Python-list mailing list