Date: Wed, 26 Nov 2003 02:55:16 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [Ux2bs_Archive] No. 238 ************************************************** Tuesday 25 November 2003 Number 238 ************************************************** Subjects for today 1 Re: conflicting types for `_getcwd2' : John Poltorak 2 Re: conflicting types for `_getcwd2' : Stefan.Neis at t-online.de 3 Re: conflicting types for `_getcwd2' : Stefan.Neis at t-online.de **= Email 1 ==========================** Date: Wed, 26 Nov 2003 10:21:43 +0000 From: John Poltorak Subject: Re: conflicting types for `_getcwd2' On Wed, Nov 26, 2003 at 11:00:18AM +0100, Stefan.Neis at t-online.de wrote: > Hi, > > > Anyone know what to do when I get:- ? > > > > conflicting types for `_getcwd2' > > Try to identify which definition (probably contained in the > code you're trying to compile) is conflicting with the one > from Posix/2's stdio.h and fix/remove it. What I did to get round the problem was to comment out this line from a header:- # define getcwd _getcwd2 I'm not sure about what the consequences of doing this are but the problem disappeared. It didn't appear to be Posix/2 related in that the same error occurred irrespective of whether Posix/2 was used or not. > Regards, > Stefan -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 2 ==========================** Date: Wed, 26 Nov 2003 11:00:18 +0100 From: Stefan.Neis at t-online.de Subject: Re: conflicting types for `_getcwd2' Hi, > Anyone know what to do when I get:- ? > > conflicting types for `_getcwd2' Try to identify which definition (probably contained in the code you're trying to compile) is conflicting with the one from Posix/2's stdio.h and fix/remove it. Regards, Stefan _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 3 ==========================** Date: Wed, 26 Nov 2003 11:57:08 +0100 From: Stefan.Neis at t-online.de Subject: Re: conflicting types for `_getcwd2' Hi, > What I did to get round the problem was to comment out this line from a > header:- > > # define getcwd _getcwd2 > > I'm not sure about what the consequences of doing this are but the problem > disappeared. Simply removing it probably is going to cause some problems with drive letter handling. Preferably, you would reorder some includes such that the define happens after including stdlib.h and unistd.h. Regards, Stefan _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs