www.delorie.com/archives/browse.cgi | search |
From: | "Alexei A. Frounze" <dummy_addressee AT hotmail DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Linking DJGPP programs with MASM generated COFF files |
Date: | Thu, 15 Mar 2001 19:03:34 -0500 |
Lines: | 33 |
Message-ID: | <98rl6g$3922o$1@ID-57378.news.dfncis.de> |
References: | <98ra9f$9rh$1 AT jake DOT esu DOT edu> |
NNTP-Posting-Host: | 209-130-132-85.nas3.roc.gblx.net (209.130.132.85) |
X-Trace: | fu-berlin.de 984700945 3442776 209.130.132.85 (16 [57378]) |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.50.4133.2400 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
AFAIK, MASM generates different type of COFF which is not same as supported by DJGPP. Use NASM instead of MASM and you'll be OK. Also don't feel shame to take a look in DJGPP FAQ and other documents available online at DJGPP site. You'll find there a lot of answers and links... Good Luck -- Alexei A. Frounze alexfru [AT] chat [DOT] ru http://alexfru.chat.ru http://members.xoom.com/alexfru/ http://welcome.to/pmode/ "Tom Hunt" <thunt1 AT falcon DOT lhup DOT edu> wrote in message news:98ra9f$9rh$1 AT jake DOT esu DOT edu... > I'm trying to get djgpp C program to compile using a function I wrote in > assembler. The assembler output file is > in coff format like it should be, but gcc won't recognize the existence of > the function in the assembler module. I > keep getting unresolved externals during the link when I try calling the > thing. Info didn't seem to have anything on > the subject of linking external assembler objects into C programs, neither > did my assembler textbook from school. > Does anybody know what the requirements are for interfacing between an > external COFF file generated by an > assembler and a C/C++ source file? > >
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |