www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/05/24/02:41:19

Date: Wed, 24 May 1995 08:34:12 +0300
From: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii)
To: rrt1001 AT cus DOT cam DOT ac DOT uk
Subject: Re: putch
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

> I have djgpp 1.12.maint.1 and wish to use putch(). I have #included 
> conio.h and linked with -lpc, but the linker says "undefined reference to 
> `putch'". I am able to use getch without any trouble. I have scanned the 

Did you put the -lpc argument *last* on the gcc link command line?
The GNU linker (ld.exe) is a one-pass linker, so the order of its
arguments is important.  All the libraries should be put after all
the object files.

- Raw text -


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