delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/03/18/11:46:17

From: "Juan-Manuel Guerrero" <ST001906 AT HRZ1 DOT HRZ DOT TU-Darmstadt DOT De>
Organization: Darmstadt University of Technology
To: djgpp AT delorie DOT com, djgpp AT delorie DOT com, "Ricardo" <producao AT scordon DOT com DOT br>
Date: Tue, 18 Mar 2003 17:44:44 +0100
MIME-Version: 1.0
Subject: Re: TVision
X-mailer: Pegasus Mail for Windows (v2.54DE)
Message-ID: <4A9BA912021@HRZ1.hrz.tu-darmstadt.de>
X-MailScanner: Found to be clean

>  Hi, tryning to compile the DEMO of TVISION, a error show me:
>
> Error: /djgpp/lib/libc.a(conio.o)(.text+0x114):conio.c: multiple definition
> of 'gettext'
> Error: /djgpp/contrib/tvision/intl/dummy/libtvfintl.a(intldummy.o)
> (.text+0x30):intldummy.c: first defined here
>
>  May someone help me to fix this error?


This is due to the well known name clash between 
BORLAND-compatibility gettext function declared in conio.h and the 
gettext function from GNU gettext package.
To resolve this isue, you will have to modify your libc.a and 
conio.h files.
1) Download the package: gtxt040b.zip from any simtel mirror.
2) Unzip the package into some temporary directory.
3) Copy file conio.h from directory gnu/gtxt-0_10.40/djgpp into your 
    $DJDIR/include directory.
4) Open a DOS-prompt and cd into directory gnu/gtxt-0_10.40/djgpp 
     created by unziping gtxt040b.zip. Now you must run the 
     following command:
        ar -rv /dev/env/DJDIR/lib/libc.a conio.o
This will replace the existing conio.o in libc.a with the new one
distributed with gtxt040b.zip resolving the gettext name 
conflict.

If all this is not clear, please read the readme file located at 
gnu/gtxt-0_10.40.

Regards,
Guerrero, Juan Manuel

- Raw text -


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