delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/03/01:16:00

Newsgroups: comp.os.msdos.djgpp
From: Sam Davies <sdavies AT unix DOT trilogy DOT net>
Subject: Nasm-Djgpp link errors
Message-ID: <EHGIE1.2Ks@nonexistent.com>
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

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 <sdavies AT mail DOT trilogy DOT net>


- Raw text -


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