Mail Archives: djgpp/1995/08/20/07:22:58
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 -