Mail Archives: djgpp/2003/03/18/11:46:17
> 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 -