Pelles C forum
Pelles C => General discussions => Topic started by: Gerome on September 24, 2004, 09:26:15 AM
-
Hi,
I have 3 C files i compile separately...
They give me 3 different OBJ files...
Is there a way/trick of making those 3 OBJ file as 1 by injecting the 3 ones into one single OBJ ?
Thanks in advance
-
Maybe, this should help you:
main.c
#include "procedure1.c"
#include "otherproc.c"
#include "procedure3.c"
-
Hi,
Maybe, this should help you:
main.c
#include "procedure1.c"
#include "otherproc.c"
#include "procedure3.c"
Thanks, but that does not fit me.
BTW, i guess the LD.EXE utility from MinGW fits my research :)
-
Salut Gerome,
Another solution, why not to make a static library from those three object files?
-
Hi,
Salut Gerome,
Another solution, why not to make a static library from those three object files?
Because i want to make one single OBJ :)
I've found the tool that does that and how to convert'em as ELF or PE ones :)
-
Hi Jerome,
Which one is the tool you have found? Can you describe how to merge the object files?
Thanks,
Vortex
-
Good that you found a solution, Gerome. I have never seen this a problem, so I don't have a tool for it.
Pelle