delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/05/02:45:28

From: "Stefan Viljoen" <rylan AT intekom DOT co DOT za>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem making from NASM generated o file
Date: Sat, 5 Aug 2000 08:42:07 +0200
Organization: The South African Internet Exchange
Lines: 37
Message-ID: <8mgd1o$n2q$4@ctb-nnrp2.saix.net>
References: <8mffh9$apa$1 AT voder DOT nsc DOT com>
NNTP-Posting-Host: pc53-01-p99.nt.saix.net
X-Trace: ctb-nnrp2.saix.net 965457784 23642 155.239.176.99 (5 Aug 2000 06:43:04 GMT)
X-Complaints-To: abuse AT saix DOT net
NNTP-Posting-Date: 5 Aug 2000 06:43:04 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Gary Slaughenhaupt <gary DOT slaughenhaupt AT ia DOT nsc DOT com> wrote in message
news:8mffh9$apa$1 AT voder DOT nsc DOT com...
> Help, I am a beginner
> I used NASM to generate an o file in coff format then when I try to make
it
> with gcc I get the following error.
>
> c:/djgpp/lib/crt0.o(.data+0xc2):crt0.s: undefined reference to `main'
> c:/djgpp/lib/libc.a(crt1.o)(.text+0x446):crt1.c: undefined reference to
> `main'
>
> What am I doing wrong?
> Thanks for your time!

Gary,

Check out my WWW site's programming page:

http://home.intekom.com/prog.html

I have exactly the info that you need. The problem you seem to have is that
you MUST link a .O file from NASM with a .O file containing a "main"
function that is written in normal DJGPP C - check out my page for examples
on exactly how to do this.

Regards,

Stefan Viljoen

--
Starwars Forever!!!

mailto:Stefan_Viljoen AT excite DOT com
http://home.intekom.com/rylan/


- Raw text -


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