From cstrato at aon.at  Thu Feb 11 00:08:58 2010
From: cstrato at aon.at (cstrato)
Date: Thu, 11 Feb 2010 00:08:58 +0100
Subject: [Rd] wcstombs error when compiling package with Debian/Ubuntu
In-Reply-To: <19315.11744.149268.583099@ron.nulle.part>
References: <4B731ECA.304@aon.at>	<19315.8839.209171.339462@ron.nulle.part>	<4B7327C1.6050803@aon.at>
	<19315.11744.149268.583099@ron.nulle.part>
Message-ID: <4B733C8A.3040400@aon.at>

Dear Dirk,

The compiler version of OpenSUSE11.1 is "gcc version 4.3.2" whereas 
Ubuntu uses "gcc 4.4.1". Interestingly, the first complaint was a Debian 
testing (squeeze) user with "gcc-4.3".

Since it seems to be a problem of "recent-vs-older g++ versions" I will 
include the header file.

I did not realize that there is a dedicated r-sig-debian mailing list, 
which I will use next time.

Best regards
Christian


Dirk Eddelbuettel wrote:
> Christian,
>
> On 10 February 2010 at 22:40, cstrato wrote:
> | Dear Dirk,
> | 
> | Thank you for your fast reply.
> | 
> | I am afraid that a small self-contained example will not solve the 
> | problem, since in this example I would need to add "#include 
> | <stdlib.h>", and as you can see from:
> | https://stat.ethz.ch/pipermail/bioconductor/2009-August/029192.html
> | adding "#include <stdlib.h>" to some C++ *.cxx files did solve the problem.
> | 
> | The question is, why did this user need to add "#include <stdlib.h>" on 
> | Debian, while this is not necessary on OpenSUSE11.1 and MacOS X?
>
> That is difficult to say given the limited information you provided [ hint:
> next time please list compiler, libc, and libstdc++ versions ] but one common
> pattern is more recent-vs-older g++ versions as newer ones became more picky
> about missing header includes.
>
> This is now off-topic for r-devel so let's move it off-list.
>
> Dirk
>
>



[Rd] wcstombs error when compiling package with Debian/Ubuntu
cstrato