Pelles C forum

Pelles C => General discussions => Topic started by: Gerome on September 24, 2004, 09:26:15 AM

Title: A question about OBJ files
Post 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
Title: A question about OBJ files
Post by: Vortex on September 24, 2004, 01:29:07 PM
Maybe, this should help you:

main.c
Code: [Select]

#include "procedure1.c"
#include "otherproc.c"
#include "procedure3.c"
Title: A question about OBJ files
Post by: Gerome on September 24, 2004, 01:58:04 PM
Hi,

Quote from: "Vortex"
Maybe, this should help you:

main.c
Code: [Select]

#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 :)
Title: A question about OBJ files
Post by: Vortex on September 24, 2004, 04:58:52 PM
Salut Gerome,

Another solution, why not to make a static library from those three object files?
Title: A question about OBJ files
Post by: Gerome on September 24, 2004, 08:48:23 PM
Hi,

Quote from: "Vortex"
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 :)
Title: A question about OBJ files
Post by: Vortex on September 24, 2004, 08:52:11 PM
Hi Jerome,

Which one is the tool you have found? Can you describe how to merge the object files?

Thanks,

Vortex
Title: A question about OBJ files
Post by: Pelle on September 24, 2004, 11:11:51 PM
Good that you found a solution, Gerome. I have never seen this a problem, so I don't have a tool for it.

Pelle