Date: Sun, 5 Nov 2000 08:27:39 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Danny Byers cc: djgpp AT delorie DOT com Subject: Re: using COFF object file from MASM to compile C In-Reply-To: <3A047280.3ADB37CB@magma.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, 4 Nov 2000, Danny Byers wrote: > Hey! I am using MASM 6.11 (which can output the COFF format object > files) and I need to interface my assembly code with some C functions > that I have written. Be prepared for a bumpy ride: people who tried this reported problems. One thing you definitely want to make sure is that the assembly code was written for protected mode, not for real mode. See section 17.3 in the FAQ for more about this. > How can I use DJGPP with the object file that I got from MASM? I am new > to using DJGPP. What would be the command (ie. gcc file.c asmcode.obj) > to include the object file so that my C code will work with the assembly > code? The command you show above is correct: just include the object file(s) as part of the link command line.