Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!corton!inria!seti!nuri!ziane From: ziane@nuri.inria.fr (ziane mikal @) Newsgroups: comp.lang.c++ Subject: Re: Auto type conversion selects wrong constructor Message-ID: <2276@seti.inria.fr> Date: 13 Jun 91 08:28:28 GMT References: <4255@borg.cs.unc.edu> Sender: news@seti.inria.fr Organization: INRIA Rocquencourt,Le Chesnay, France. Lines: 9 I am having trouble compiling the NIH library. The Makefile of directory errfac does some patching of the ..c files, namely the following: ${CC} ${CFLAGS} -F -c errors.c | sed -e 's/__0__builtin/__builtin/g' >errors..c Now, this introduces ambiguities as two parameters become identical due to the sed modification. When I remove the sed, it compiles but seems to return an error code as the make stops. Was the sed really necessary ? I compiled the files by hand. But the testing of the NIH class fails. array gives me a segmentation fault. Is it related to the sed business ? Or does it have to do with static constructor order of calling of the linker ? I'll be grateful to anyone who could provide some help.