*BSD News Article 60905


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.hawaii.edu!ames!usenet.kornet.nm.kr!ns.etri.re.kr!news.kreonet.re.kr!news.dacom.co.kr!newsrelay.netins.net!solaris.cc.vt.edu!news.mathworks.com!news4.ner.bbnplanet.net!news.ner.bbnplanet.net!public.x.org!kaleb
From: kaleb@x.org (Kaleb KEITHLEY)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: conflicting types for `wchar_t'
Date: 31 Jan 96 16:55:45 GMT
Organization: X Consortium
Lines: 23
Message-ID: <kaleb.823107345@exalt>
References: <4eijt4$5sa@dali.cs.uni-magdeburg.de>
NNTP-Posting-Host: exalt.x.org
X-Newsreader: NN version 6.5.0 #5

jesse@csmd.cs.UNI-Magdeburg.DE (Roland Jesse) writes:

>How may I avoid the error that `wchar_t' is previous declared when in 
>/usr/X11R6/include/X11/Xlib.h is this line:

>typedef unsigned long wchar_t;

>and in /usr/include/stdlib.h this one:

>typedef _BSD_WCHAR_T_   wchar_t; 

>Both header files are needed. So how to avoid this error?
>(BTW: same procedure with `sys_errlist'...)

This would imply that you have defined X_WCHAR somewhere, e.g. in
StandardDefines in your site.def or host.def file. 99&44/100ths
percent of the time this is a mistake.

--

Kaleb KEITHLEY
X Consortium