Désolé pour ce mini checkin, mais je ne sais pas trop comment résoudre ce problème. Si la machine est équipée des fonctions round() et roundf(), alors `-DNEED_ROUND'et `-DNEED_ROUNDF' posent problème car les 2 fonctions sont définies 2 fois; si la machine n'est pas équipée des fonctions round() et roundf(), alors si `-DNEED_ROUNDF' et `-DNEED_ROUND' ne sont pas présentes, ca ne compile pas non plus.
Index: doc/ref/out/exdoc.config.in --- doc/ref/out/exdoc.config.in Sat, 03 Apr 2004 23:02:21 +0200 thivol_d (oln/k/7_exdoc.conf 1.3 600) +++ doc/ref/out/exdoc.config.in Sat, 03 Apr 2004 23:15:51 +0200 thivol_d (oln/k/7_exdoc.conf 1.3 600) @@ -4,7 +4,7 @@ TAG_CLOSE = endcode CAPTIONS = cxx # We want to run cxx on the extracted files (see line below) ALIAS cxx = @CXX@ # Here, cxx means g++ but you can choose other compilers - OPTIONS = -DNEED_ROUND -DNEED_ROUNDF @CXXFLAGS_OPTIMIZE@ @CXXFLAGS_STRICT_ERRORS@ -I@top_srcdir@/integre -I@top_srcdir@/olena -I@top_srcdir@/metalic $1 -o $2 -DIMG_OUT="../img/" -DIMG_IN="@top_srcdir@/olena/img/" # tell how to use the soft, i.e. where to put input and output arguments (default if not overriden) ($1: input, $2: output) FIXME: $* should have explicit name, chek flags + OPTIONS = @CXXFLAGS_OPTIMIZE@ @CXXFLAGS_STRICT_ERRORS@ -I@top_srcdir@/integre -I@top_srcdir@/olena -I@top_srcdir@/metalic $1 -o $2 -DIMG_OUT="../img/" -DIMG_IN="@top_srcdir@/olena/img/" # tell how to use the soft, i.e. where to put input and output arguments (default if not overriden) ($1: input, $2: output) FIXME: $* should have explicit name, chek flags OUT = out # FIXME: should be obsolete EXT = cc # Extension of generated file STD_OUT_EXT = std # Extension of generated file standard output
Damien Thivolle damien@lrde.epita.fr writes:
Désolé pour ce mini checkin, mais je ne sais pas trop comment résoudre ce problème. Si la machine est équipée des fonctions round() et roundf(), alors `-DNEED_ROUND'et `-DNEED_ROUNDF' posent problème car les 2 fonctions sont définies 2 fois; si la machine n'est pas équipée des fonctions round() et roundf(), alors si `-DNEED_ROUNDF' et `-DNEED_ROUND' ne sont pas présentes, ca ne compile pas non plus.
Index: doc/ref/out/exdoc.config.in --- doc/ref/out/exdoc.config.in Sat, 03 Apr 2004 23:02:21 +0200 thivol_d (oln/k/7_exdoc.conf 1.3 600) +++ doc/ref/out/exdoc.config.in Sat, 03 Apr 2004 23:15:51 +0200 thivol_d (oln/k/7_exdoc.conf 1.3 600) @@ -4,7 +4,7 @@ TAG_CLOSE = endcode CAPTIONS = cxx # We want to run cxx on the extracted files (see line below) ALIAS cxx = @CXX@ # Here, cxx means g++ but you can choose other compilers
- OPTIONS = -DNEED_ROUND -DNEED_ROUNDF @CXXFLAGS_OPTIMIZE@ @CXXFLAGS_STRICT_ERRORS@ -I@top_srcdir@/integre -I@top_srcdir@/olena -I@top_srcdir@/metalic $1 -o $2 -DIMG_OUT="../img/" -DIMG_IN="@top_srcdir@/olena/img/" # tell how to use the soft, i.e. where to put input and output arguments (default if not overriden) ($1: input, $2: output) FIXME: $* should have explicit name, chek flags
- OPTIONS = @CXXFLAGS_OPTIMIZE@ @CXXFLAGS_STRICT_ERRORS@ -I@top_srcdir@/integre -I@top_srcdir@/olena -I@top_srcdir@/metalic $1 -o $2 -DIMG_OUT="../img/" -DIMG_IN="@top_srcdir@/olena/img/" # tell how to use the soft, i.e. where to put input and output arguments (default if not overriden) ($1: input, $2: output) FIXME: $* should have explicit name, chek flags OUT = out # FIXME: should be obsolete EXT = cc # Extension of generated file STD_OUT_EXT = std # Extension of generated file standard output
KO, euh je veux dire OK...
"Damien" == Damien Thivolle damien@lrde.epita.fr writes:
Désolé pour ce mini checkin, mais je ne sais pas trop comment résoudre ce problème. Si la machine est équipée des fonctions round() et roundf(), alors `-DNEED_ROUND'et `-DNEED_ROUNDF' posent problème car les 2 fonctions sont définies 2 fois; si la machine n'est pas équipée des fonctions round() et roundf(), alors si `-DNEED_ROUNDF' et `-DNEED_ROUND' ne sont pas présentes, ca ne compile pas non plus.
Index: doc/ref/out/exdoc.config.in --- doc/ref/out/exdoc.config.in Sat, 03 Apr 2004 23:02:21 +0200 thivol_d (oln/k/7_exdoc.conf 1.3 600) +++ doc/ref/out/exdoc.config.in Sat, 03 Apr 2004 23:15:51 +0200 thivol_d (oln/k/7_exdoc.conf 1.3 600) @@ -4,7 +4,7 @@ TAG_CLOSE = endcode CAPTIONS = cxx # We want to run cxx on the extracted files (see line below) ALIAS cxx = @CXX@ # Here, cxx means g++ but you can choose other compilers
- OPTIONS = -DNEED_ROUND -DNEED_ROUNDF @CXXFLAGS_OPTIMIZE@ @CXXFLAGS_STRICT_ERRORS@ -I@top_srcdir@/integre -I@top_srcdir@/olena -I@top_srcdir@/metalic $1 -o $2 -DIMG_OUT="../img/" -DIMG_IN="@top_srcdir@/olena/img/" # tell how to use the soft, i.e. where to put input and output arguments (default if not overriden) ($1: input, $2: output) FIXME: $* should have explicit name, chek flags
- OPTIONS = @CXXFLAGS_OPTIMIZE@ @CXXFLAGS_STRICT_ERRORS@ -I@top_srcdir@/integre -I@top_srcdir@/olena -I@top_srcdir@/metalic $1 -o $2 -DIMG_OUT="../img/" -DIMG_IN="@top_srcdir@/olena/img/" # tell how to use the soft, i.e. where to put input and output arguments (default if not overriden) ($1: input, $2: output) FIXME: $* should have explicit name, chek flags
Je suppose que ceci est un fichier d'entrée de exdoc. Je suggère donc fortement d'équiper ce dernier du support de \ pour continuation de ligne, puis de fragment ce monstre.
On 2004-04-03, Damien Thivolle damien@lrde.epita.fr wrote:
Désolé pour ce mini checkin, mais je ne sais pas trop comment résoudre ce problème. Si la machine est équipée des fonctions round() et roundf(), alors `-DNEED_ROUND'et `-DNEED_ROUNDF' posent problème car les 2 fonctions sont définies 2 fois; si la machine n'est pas équipée des fonctions round() et roundf(), alors si `-DNEED_ROUNDF' et `-DNEED_ROUND' ne sont pas présentes, ca ne compile pas non plus.
La macro Autoconf AC_WITH_OLN, qui appelle AC_CHECK_CXX_MATH, enrichit CPPFLAGS et CXXFLAGS comme il faut.
Je te suggère l'utilisation de @CPPFLAGS@ et @CXXFLAGS@ en sus de ceux déjà utilisés, comme c'est d'ailleurs déjà fait pour les tests.