Newsgroups: comp.os.msdos.djgpp From: Sam Davies Subject: Nasm-Djgpp link errors Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: Mime-Version: 1.0 Date: Fri, 3 Oct 1997 03:45:35 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Ok... when I try to compile the COFFTEST.ASM file (which comes with NASM) along with the COFFTEST.C file on RHIDE, I get the following two errors: Error: c:/djgpp/lib\crt0.o(.data+0x92):crt0.s: undefined reference to `main' Error: c:/djgpp/lib/libc.a(crt1.o)(.text+0x312):crt1.c: undefined reference to `main' Also... I had to comment out the following lines (in COFFTEST.ASM) to avoid a bunch of other errors: GLOBAL _lrotate ; [1] GLOBAL _greet ; [1] GLOBAL _asmstr ; [2] GLOBAL _textptr ; [2] GLOBAL _selfptr ; [2] GLOBAL _integer ; [3] Everything else is exactly as it came in the NASM distribution .ZIP file... but as far as I can tell, this these are completely unrelated... Can someone who has successfully gotten NASM files to link with DJGPP files (on RHIDE) help me? Thanks alot! Sam -- Sam Davies