certi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-dev] CERTI on FreeBSD


From: Martin Spott
Subject: [certi-dev] CERTI on FreeBSD
Date: Tue, 18 Nov 2008 10:03:10 +0000 (UTC)
User-agent: tin/1.9.2-20061221 ("Benmore") (UNIX) (SunOS/5.10 (sun4u))

Hi,
FreeBSD-7.0 has a '/usr/include/malloc.h' which looks like:

/* $FreeBSD: src/include/malloc.h,v 1.5 2001/11/07 23:14:31 obrien Exp $ */
#if __STDC__
#error "<malloc.h> has been replaced by <stdlib.h>"
#else
#include <stdlib.h>
#endif


....  which leads to the following Error:

cd /usr/local/src/certi/libHLA && /usr/bin/g++  -O3 -march=pentiumpro
  -DHAVE_CONFIG_H=1 -DHAVE_XML -DRTI_USES_STD_FSTREAM -DHLA_EXPORTS -fPIC
  -I/usr/local/include/libxml2 -I/usr/local/src/certi/include
  -I/usr/local/src/certi -I/usr/local/src/certi/libHLA
  -I/usr/local/include/libxml2 -I/usr/local/include -o
  CMakeFiles/HLA.dir/HLAbuffer.o -c
  /usr/local/src/certi/libHLA/HLAbuffer.cc
In file included from /usr/local/src/certi/libHLA/HLAbuffer.hh:23,
                 from /usr/local/src/certi/libHLA/HLAbuffer.cc:17:
/usr/include/malloc.h:3:2: error: #error "<malloc.h> has been replaced by 
<stdlib.h>"
*** Error code 1


Replacing "<malloc.h>" with "<stdlib.h>" in 'libHLA/HLAbuffer.hh' does
indeed make the compiler happy.

Cheers,
        Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--------------------------------------------------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]