www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/16/21:33:28

Message-ID: <19991117022349.18670.rocketmail@web1403.mail.yahoo.com>
Date: Tue, 16 Nov 1999 18:23:49 -0800 (PST)
From: Prashant TR <prashant_news AT yahoo DOT com>
Subject: Re: RHIDE compiling
To: Alex Mendes da Costa <alexmdc AT virtualis DOT com>
Cc: djgpp AT delorie DOT com
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com


--- Alex Mendes da Costa <alexmdc AT virtualis DOT com>
wrote:
> When I want to make my project in RHIDE it compiles
> everything into a
> object file and then all the object files into an
> exe, correct?
> This is annoying when I have two files with the same
> name, eg. foo.c and
> foo.asm. it makes them both into foo.o and the
> compiles foo.o and foo.o
> completely stuffing up my thing.
> Is there any way to change the way it compiles
> things, i mean make
> foo.asm into foo.o and then add foo.c to foo.o. 

Just go to the project window. Select "foo.c" or
"foo.asm" and press Ctrl-O to get the local options.
Change the name of the output file to something else.

Since gcc knows about only the ".o" file that was
generated latest, I think this should probably be the
only solution.

> Its
> just akward because
> I have similar functions shared in c and asm.

It would be better off to change the name of your asm
source (to say "foos.asm") rather than following this
awkward method. It's a bad programming practice to
give such names to two files when you know their ".o"
will clash.


=====

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

- Raw text -


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