www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/09/05:45:25

Date: Sun, 9 May 1999 12:06:52 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: solderer AT my-dejanews DOT com
cc: djgpp AT delorie DOT com
Subject: Re: Please help! DJGPP/RHIDE/undefined reference error
In-Reply-To: <7gvn8s$28s$1@nnrp1.deja.com>
Message-ID: <Pine.SUN.3.91.990509120631.3278Q-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Fri, 7 May 1999 solderer AT my-dejanews DOT com wrote:

> Creating: seritest.exe
> Error: test.o: in funktion 'main':
> test.c(32) Error: undefined reference to 'sio_openport'
> and more like this :-(

This looks like you aren't linking the library into the program, so
the functions defined inside the library aren't found.

I suggest to follow the instructions in the package.  Perhaps you are
supposed to use a Makefile and the Make utility, not RHIDE.

> But the mentioned variables are there in the includ file ! I can read them,
> Why cant DJGPP find them ?

The headers do not define the functions, they just declare their
prototypes.  The actual code for these functions is in the library,
and you need to tell the linker to use that library.

- Raw text -


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