Menu

#797 [PATCH] Compile Tulip with GCC 5

4.0.0
closed-fixed
nobody
None
5
2015-04-09
2015-04-08
SSG
No

Tulip uses a deprecated header that was renamed with gcc 4.3+. The patch below corrects the detection of the GCC version and uses the correct header. GCC complains during compiling but tulip will now compile and run under GCC 5.

--- ../tulip3/library/tulip-core/include/tulip/tulipconf.h 2015-01-11 16:15:32.000000000 -0500
+++ library/tulip-core/include/tulip/tulipconf.h 2015-04-08 16:39:31.000000000 -0400
@@ -135,8 +135,10 @@
# define stdext gnu_cxx
# if (__GNUC_MINOR
< 4 && GNUC < 4)
# include <ext stl_hash_fun.h="">
-# elif (GNUC_MINOR < 3)
+# elif (GNUC_MINOR < 3 && GNUC <= 4)
# include <ext hash_fun.h="">
+# elif (GNUC_MINOR > 3 && GNUC >= 4)
+# include <backward hash_fun.h="">
# endif
#endif</backward></ext></ext>

Discussion

  • SSG

    SSG - 2015-04-08

    The text formatting of the patch was mangled. Added as attachment.

     
  • Patrick Mary

    Patrick Mary - 2015-04-09
    • status: open --> closed-fixed
     
  • Patrick Mary

    Patrick Mary - 2015-04-09

    Thank you very much for your patch.
    It has been integrated in the current svn code line (commit #10675)

     

Log in to post a comment.