delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/12/12/16:30:38

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Fiendish McTavern" <drulius1nospam AT suddenlink DOT net>
Newsgroups: comp.os.msdos.djgpp
References: <_cX7j.6211$3b7 DOT 2346 AT newsfe23 DOT lga> <200712122019 DOT lBCKJbw4027155 AT envy DOT delorie DOT com>
Subject: Re: [new user] compile and link on winXp cmd line versus makefile
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
Message-ID: <zbY7j.2807$E01.371@newsfe22.lga>
NNTP-Posting-Host: 75.110.200.158
X-Complaints-To: abuse AT suddenlink DOT net
X-Trace: newsfe22.lga 1197494111 75.110.200.158 (Wed, 12 Dec 2007 14:15:11 MST)
NNTP-Posting-Date: Wed, 12 Dec 2007 14:15:11 MST
Organization: Suddenlink
Date: Wed, 12 Dec 2007 15:12:59 -0600
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Thanks for the quick response.

When I run
 gcc -s DVIDEO.C
at the command line, I get undefined references to _Video(params) and other 
functions.  But when I run
 make -f makefile.txt test
on a makefile containing

test: DVIDEO.C DVIDEO.H
    gcc -s DVIDEO.C

at the command line, I get undefined references to Video(params).

You have nailed the problem on the head because functions like Video() in my 
.asm file are named including the leading underscores.  Is there a make flag 
to tell make to tell gcc to look for the leading underscore decoration?  Or 
do I need to edit my asm files so that they work with make as is?

Thanks again,

Jon 


- Raw text -


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