delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/19/12:31:57

Date: Sun, 19 Jul 1998 19:29:11 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Richard Lanyon <rlanyon AT plato DOT wadham DOT ox DOT ac DOT uk>
cc: djgpp AT delorie DOT com
Subject: Re: Undefined reference to `main'
In-Reply-To: <Pine.LNX.3.95.980719120208.15471A-100000@plato.wadham.ox.ac.uk>
Message-ID: <Pine.SUN.3.91.980719192720.1303B-100000@is>
MIME-Version: 1.0

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.

- Raw text -


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