delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/14/09:37:56

Date: Thu, 14 Aug 1997 16:37:06 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jeremy Penner <pzp655 AT freenet DOT mb DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: Weird debugging problems
In-Reply-To: <33f0f2e2.1965997@nntp.mbnet.mb.ca>
Message-ID: <Pine.SUN.3.91.970814163452.7580A-100000@is>
MIME-Version: 1.0

On Tue, 12 Aug 1997, Jeremy Penner wrote:

> I'm having trouble with the -g option.  I use:
> gcc leveled.c -g leveled.exe tilelib.o sprite.o -lalleg
> and it spews out page after page of "multiple definitions" for every
> function I use.  Here's a sample:

It's a cockpit error.  You need to say this:

	gcc leveled.c -g -o leveled.exe tilelib.o sprite.o -lalleg

In other words, -g does not come INSTEAD of -o, it comes IN ADDITION to 
it.  You still have to say -o leveled.exe.

- Raw text -


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