Ticket #1341 (closed bug: fixed)

Opened 11 months ago

Last modified 11 months ago

Orange fails to compile on OSX 10.9 (Mavericks)

Reported by: ales Owned by: ales
Milestone: Component: library
Severity: major Keywords:
Cc: Blocking:
Blocked By:


source/orange/hclust.cpp:31:18: fatal error: 'tr1/unordered_map' file not found

#include <tr1/unordered_map>

Apples clang compiler switched the standard library from libstdc++ to a new libc++ which targeted the C++11 standard from the start and never had std::tr1 namespace to begin with.

Change History

comment:1 Changed 11 months ago by Ales Erjavec <ales.erjavec@…>

  • Status changed from new to closed
  • Resolution set to fixed

In [57be32d2ac3d8195d70f73ad235cb77f0e0166f4/orange]:

Fix unordered_map include when using libc++ (clang).

Also omit the tr1 namespace if the compiler supports the c++11 standard.

(fixes #1341)

Note: See TracTickets for help on using tickets.