www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/04/20/02:23:36

Date: Thu, 20 Apr 1995 08:12:28 +0300
From: eliz AT is DOT elta DOT co DOT il. (Eli Zaretskii)
To: S DOT B DOT M DOT Verstege AT research DOT ptt DOT nl, BILLC AT teleng1 DOT tait DOT co DOT nz
Subject: Re: Problems with gppconio
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

>> I have a strange error, every time i include gppconio.h (or conio.h) and
>> compile the source to an object and link it with the other parts. I get the
>> 'undeclared reference' error... What am i doing wrong ? Must is add an
>> parameter to the compiler options (-l...)..
>
> gcc does no automatically link in the C++ library libgpp.a (check the 
> name) so you wolud need to include the library link option -lgpp in 
> order to link.                                              ^^^^

This is probably a typo (I hope, not a Freudian one ;-), but the correct
library is -lpc, as gppconio.h has nothing to do with C++.

- Raw text -


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