[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error message for memory.h
From: |
Eric Blake |
Subject: |
Re: Error message for memory.h |
Date: |
Wed, 9 Sep 2015 08:25:23 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
On 09/09/2015 03:02 AM, Chongke Bi wrote:
> Dear all,
>
> I got the following message,
> could you please kindly help me?
>
>
> Thank you very much in advance.
>
> Best regards,
> Chongke
>
> -------------------------------------------------------------------------------------------------------
> configure:5464: checking for memory.h
> configure:5464: mpicc -c -g -O2 conftest.c >&5
> In file included from conftest.c:50:0:
> /usr/local/include/memory.h:4:19: fatal error: cstdlib: No such file or
> directory
> #include <cstdlib>
> ^
Looks like you have installed some C++ package that pollutes the global
include namespace into /usr/local/include. Figure out what package
mistakenly dropped a memory.h there, and get rid of it.
That said, <memory.h> is an obsolete header these days (you should be
using <string.h> instead), so the fact that configure can't find a
working <memory.h> shouldn't prevent your package from still compiling,
if your package isn't relying on obsolete headers.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature