[Paradiseo-help] [paradiseo-Bugs][5399] Missing <values.h> include in MacOS (Darwin) causes PEO compile failure

paradiseo-bugs at gforge.inria.fr paradiseo-bugs at gforge.inria.fr
Lun 7 Avr 18:04:37 CEST 2008


Bugs item #5399, was opened at 07/04/2008 16:04
You can respond by visiting: 
http://gforge.inria.fr/tracker/?func=detail&atid=663&aid=5399&group_id=145

Status: Open
Priority: 3
Submitted By: thomas legrand (legrand)
Assigned to: thomas legrand (dolphin-cluster)
Summary: Missing <values.h> include in MacOS (Darwin) causes PEO compile failure 
Resolution: Accepted
Group: 1.1-patch1 and previous
Category: Compile


Initial Comment:


A problem occurs when installing ParadisEO-PEO on MacOS systems. The error was reported by a "Darwin" user. It's due to the fact that the file "values.h" does not exist.



The files affected are:



- paradiseo-peo/tutorial/example/tsp/node.cpp

- paradiseo-peo/tutorial/example/tsp/edge_xover.cpp



Solutions:

- Adapt the config.h file

- Define MAXDOUBLE, MAXINT .... in the files affected





#ifdef HAVE_VALUES_H

 #include <values.h>

#endif



#ifdef HAVE_FLOAT_H

 #include <float.h>

#endif



#ifndef MAXDOUBLE

 #define MAXDOUBLE DBL_MAX

#endif

#ifndef MINDOUBLE

 #define MINDOUBLE DBL_MIN

#endif





An example can be found at: http://www.netperf.org/pipermail/netperf-dev/2006-January/000057.html

----------------------------------------------------------------------

You can respond by visiting: 
http://gforge.inria.fr/tracker/?func=detail&atid=663&aid=5399&group_id=145





Plus d'informations sur la liste de diffusion Paradiseo-help