NO

Author Topic: A question about OBJ files  (Read 6642 times)

Gerome

  • Guest
A question about OBJ files
« 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

Offline Vortex

  • Member
  • *
  • Posts: 865
    • http://www.vortex.masmcode.com
A question about OBJ files
« Reply #1 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"
Code it... That's all...

Gerome

  • Guest
A question about OBJ files
« Reply #2 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 :)

Offline Vortex

  • Member
  • *
  • Posts: 865
    • http://www.vortex.masmcode.com
A question about OBJ files
« Reply #3 on: September 24, 2004, 04:58:52 PM »
Salut Gerome,

Another solution, why not to make a static library from those three object files?
Code it... That's all...

Gerome

  • Guest
A question about OBJ files
« Reply #4 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 :)

Offline Vortex

  • Member
  • *
  • Posts: 865
    • http://www.vortex.masmcode.com
A question about OBJ files
« Reply #5 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
Code it... That's all...

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
A question about OBJ files
« Reply #6 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
/Pelle