Mail Archives: djgpp/1999/11/16/21:33:28
--- 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 -