1. Coin3D
  2. Coin
  3. Issues
Issue #23 closed

Xcode/clang: Error compiling freetype.cpp

Gregor Jasny
created an issue

Hello,

when compiling freetype.cpp I get tens of these errors: In file included from freetype.cpp:142: In file included from ../../src/base/dict.h:31: In file included from /usr/include/c++/4.2.1/cmath:50: /usr/include/c++/4.2.1/bits/cpp_type_traits.h:92:10: error: functions that differ only in their return type cannot be overloaded two& test_type(...); ^ /usr/include/c++/4.2.1/bits/cpp_type_traits.h:90:9: note: previous declaration is here one test_type(int _Tp::*); ^ In file included from freetype.cpp:142: In file included from ../../src/base/dict.h:31: /usr/include/c++/4.2.1/cmath:92:3: error: functions that differ only in their return type cannot be overloaded abs(float x) ^ /usr/include/c++/4.2.1/cmath:88:3: note: previous definition is here abs(double x) ^ 1 warning generated.

The attached patch fixes the issue.

Thanks, Gregor

Comments (2)

  1. Log in to comment