- changed status to resolved
gd_color_map.c:765:1: error: visibility does not match previous declaration
Issue #60
resolved
Building gd2 2.1.0-preview fails on OS X 10.8.3 with Xcode 4.6.2's clang compiler:
:info:build gd_color_map.c:765:1: error: visibility does not match previous declaration :info:build BGD_EXPORT_DATA_IMPL gdColorMap GD_COLOR_MAP_X11 = { :info:build ^ :info:build ./gd.h:37:48: note: expanded from macro 'BGD_EXPORT_DATA_IMPL' :info:build # define BGD_EXPORT_DATA_IMPL __attribute__ ((visibility ("hidden"))) :info:build ^ :info:build ./gd_color_map.h:26:2: note: previous attribute is here :info:build BGD_EXPORT_DATA_PROT gdColorMap GD_COLOR_MAP_X11; :info:build ^ :info:build ./gd.h:36:48: note: expanded from macro 'BGD_EXPORT_DATA_PROT' :info:build # define BGD_EXPORT_DATA_PROT __attribute__ ((visibility ("default"))) :info:build ^ :info:build 1 error generated.
$ clang -v Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn) Target: x86_64-apple-darwin12.3.0 Thread model: posix
Comments (1)
-
Account Deleted - Log in to comment
Please use current master branch from git.