www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/08/20/07:22:58

Date: Sun, 20 Aug 1995 13:29:35 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Peter Breitling <breitlip AT informatik DOT tu-muenchen DOT de>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Linking to Borland C Objects - Possible?

On Fri, 18 Aug 1995, Peter Breitling wrote:

> I it possible to link Borland C Objects to gcc programms? Is there a converter?
> Or is that impossible at all?

This is explained in the DJGPP FAQ list:

17.4  Q: I have a set of useful functions in a .obj format, but no source
         code.  Can I use them with my DJGPP program?
      Q: I have this ACMELUXE.LIB library of functions which I want to
         use.  I've extracted all the .obj files, but when I try to link
         them with my program, gcc complains: ``File format not
         recognized''.  Can't I use these object files?
      Q: I've got a bunch of .obj files I want to use.  I've ran AR to
         make a Unix-style .a object library, but got an error message
         from gcc saying ``couldn't read symbols: No symbols''.  How can I
         link them with my code?
      A: Sorry, you can't.  The GNU linker called by gcc doesn't
         understand the format of .obj files which other DOS-based
         compilers/assemblers emit.  Unless you can get the source of
         those functions and compile them with gcc, you won't be able to
         use them.  (You can also try using LIB32 librarian from Microsoft
         C8 to convert object files to COFF.)  But don't feel too bad
         about it: most probably, they were written for real-mode
         programs, and without extensive modifications would have crashed
         your program anyway...

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019