use #include "tex.h" rather than <tex.h>


Modérateur : xcasadmin

Messages : 15
Inscription : mer. oct. 24, 2018 9:58 am

use #include "tex.h" rather than <tex.h>

Message par dimpase » jeu. juil. 04, 2019 8:34 am

In src/mathml.h there is `#include <tex.h>` which is not the right thing to do for an internal header, and indeed it breaks e.g. Sage's `giacpy_sage` package. Sage on Gentoo has the following patch

Code : Tout sélectionner

diff --git a/src/mathml.h b/src/mathml.h
index 31ce57a..49b43af 100644
--- a/src/mathml.h
+++ b/src/mathml.h
@@ -19,7 +19,7 @@
 #define _GIAC_MATHML_H
 #include "first.h"
-#include <tex.h>
+#include "tex.h"
 #include <string>
and will need to add it on

Please fix this in Giac itself, as after all tex.h is and internal header and should be included as `#include "tex.h"`