Date: Sun, 19 Jul 1998 19:29:11 +0300 (IDT) From: Eli Zaretskii To: Richard Lanyon cc: djgpp AT delorie DOT com Subject: Re: Undefined reference to `main' In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sun, 19 Jul 1998, Richard Lanyon wrote: > > In which object file (of the two you are linking) is `main' defined? > > dsweep.o What was the exact GCC command used to compile dsweep.o? > > And why did you need those -L switches? > > I'm trying to get my program to talk to a piece of hardware that's > connected to my computer. The libraries are provided by the hardware > manufacturer (TDT, hence they're in c:\tdt\...). But you aren't actually linking in any libraries from there, since there are no -l switches on the GCC command line that you posted. So, at least in this case, those -L switches are redundant.