{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/2740","labels_url":"https://api.github.com/repos/godotengine/godot/issues/2740/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/2740/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/2740/events","html_url":"https://github.com/godotengine/godot/issues/2740","id":115427430,"number":2740,"title":"compile on mac for platform iphone error, show templates must have C++ linages...","user":{"login":"rssqian","id":475049,"avatar_url":"https://avatars.githubusercontent.com/u/475049?v=3","gravatar_id":"","url":"https://api.github.com/users/rssqian","html_url":"https://github.com/rssqian","followers_url":"https://api.github.com/users/rssqian/followers","following_url":"https://api.github.com/users/rssqian/following{/other_user}","gists_url":"https://api.github.com/users/rssqian/gists{/gist_id}","starred_url":"https://api.github.com/users/rssqian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rssqian/subscriptions","organizations_url":"https://api.github.com/users/rssqian/orgs","repos_url":"https://api.github.com/users/rssqian/repos","events_url":"https://api.github.com/users/rssqian/events{/privacy}","received_events_url":"https://api.github.com/users/rssqian/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/godotengine/godot/labels/bug","name":"bug","color":"ff2222"},{"url":"https://api.github.com/repos/godotengine/godot/labels/platform:ios","name":"platform:ios","color":"dddddd"},{"url":"https://api.github.com/repos/godotengine/godot/labels/platform:osx","name":"platform:osx","color":"dddddd"},{"url":"https://api.github.com/repos/godotengine/godot/labels/topic:buildsystem","name":"topic:buildsystem","color":"ffdd44"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-06T03:32:38Z","updated_at":"2015-11-06T22:26:39Z","closed_at":null,"body":"With no code changes, and on master code.\r\nMany thanks.\r\n\r\n```\r\nusers-MacBook-Pro:godot username$ scons p=iphone\r\nscons: Reading SConscript files ...\r\nscons: done reading SConscript files.\r\nscons: Building targets ...\r\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -o platform/iphone/game_center.iphone.debug.o -c -fno-objc-arc -arch armv7 -fmessage-length=0 -fno-strict-aliasing -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -Wno-trigraphs -fpascal-strings -Wmissing-prototypes -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-shorten-64-to-32 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -gdwarf-2 -fvisibility=hidden -Wno-sign-conversion -mthumb \"-DIBOutlet=__attribute__((iboutlet))\" \"-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))\" \"-DIBAction=void)__attribute__((ibaction)\" -miphoneos-version-min=5.1.1 -MMD -MT dependencies -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/ -D_DEBUG -DDEBUG=1 -gdwarf-2 -Wall -O0 -DDEBUG_ENABLED -DDEBUG_MEMORY_ALLOC -DSCI_NAMESPACE -fblocks -DGAME_CENTER_ENABLED -DSTOREKIT_ENABLED -DICLOUD_ENABLED -DDEBUG_MEMORY_ENABLED -DIPHONE_ENABLED -DUNIX_ENABLED -DGLES2_ENABLED -DMPC_FIXED_POINT -fexceptions -DMUSEPACK_ENABLED -DOPENSSL_ENABLED -DSQUISH_ENABLED -DVORBIS_ENABLED -DOPUS_ENABLED -DTHEORA_ENABLED -DPNG_ENABLED -DDDS_ENABLED -DPVR_ENABLED -DJPG_ENABLED -DWEBP_ENABLED -DSPEEX_ENABLED -DGDSCRIPT_ENABLED -DMINIZIP_ENABLED -DXML_ENABLED -DETC1_ENABLED -DOPENSSL_NO_ASM -DOPENSSL_THREADS -DL_ENDIAN -DGLES2_OVERRIDE -Icore -Icore/math -Itools -Idrivers -I. -Iplatform/iphone -Iplatform/iphone/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/OpenGLES.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioUnit.framework/Headers -Idrivers/builtin_openssl2 -Idrivers/builtin_zlib/zlib -Iplatform/iphone/vorbis -Idrivers/builtin_openssl2/crypto -Idrivers/builtin_openssl2/openssl -Idrivers/builtin_openssl2/crypto/evp -Idrivers/builtin_openssl2/crypto/asn1 -Idrivers/builtin_openssl2/crypto/modes -Idrivers/opus/silk/float -Idrivers/opus -Idrivers/opus/celt -Idrivers/opus/silk -Idrivers/opus/silk/float platform/iphone/game_center.mm\r\nIn file included from platform/iphone/game_center.mm:34:\r\nIn file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk//System/Library/Frameworks/GameKit.framework/Headers/GameKit.h:47:\r\nIn file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/simd/simd.h:17:\r\nIn file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/simd/vector.h:46:\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/simd/logic.h:226:5:{226:5-226:33}: error: templates must have C++ linkage [2]\r\n     template <typename inttypeN> static __SIMD_INLINE__ __SIMD_BOOLEAN_TYPE__ all(const inttypeN predicate) { return ::vector_all(predicate); }\r\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/simd/logic.h:227:5:{227:5-227:33}: error: templates must have C++ linkage [2]\r\n     template <typename inttypeN> static __SIMD_INLINE__ __SIMD_BOOLEAN_TYPE__ any(const inttypeN predicate) { return ::vector_any(predicate); }\r\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/simd/logic.h:228:5:{228:5-228:51}: error: templates must have C++ linkage [2]\r\n     template <typename inttypeN, typename fptypeN> static __SIMD_INLINE__ fptypeN select(const fptypeN x, const fptypeN y, const inttypeN predicate) { return ::vector_select(x,y,predicate); }\r\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/simd/logic.h:229:5:{229:5-229:49}: error: templates must have C++ linkage [2]\r\n     template <typename inttypeN, typename typeN> static __SIMD_INLINE__ typeN bitselect(const typeN x, const typeN y, const inttypeN mask) { return ::vector_bitselect(x,y,mask); }\r\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nIn file included from platform/iphone/game_center.mm:34:\r\nIn file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk//System/Library/Frameworks/GameKit.framework/Headers/GameKit.h:47:\r\nIn file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/simd/simd.h:17:\r\nIn file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/simd/vector.h:47:\r\nIn file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/simd/math.h:202:\r\nIn file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk//usr/include/c++/4.2.1/cmath:51:\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk//usr/include/c++/4.2.1/bits/cpp_type_traits.h:76:3:{76:3-76:52}: error: templates must have C++ linkage [2]\r\n   template<typename _Iterator, typename _Container>\r\n   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk//usr/include/c++/4.2.1/bits/cpp_type_traits.h:90:3:{90:3-90:25}: error: templates must have C++ linkage [2]\r\n   template<typename _Tp>\r\n   ^~~~~~~~~~~~~~~~~~~~~~\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk//usr/include/c++/4.2.1/bits/cpp_type_traits.h:92:3:{92:3-92:25}: error: templates must have C++ linkage [2]\r\n   template<typename _Tp>\r\n   ^~~~~~~~~~~~~~~~~~~~~~\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk//usr/include/c++/4.2.1/bits/cpp_type_traits.h:100:3:{100:3-100:17}: error: templates must have C++ linkage [2]\r\n   template<bool>\r\n   ^~~~~~~~~~~~~~\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk//usr/include/c++/4.2.1/bits/cpp_type_traits.h:105:12:{105:24-105:30}: error: explicit specialization of non-template struct '__truth_type' [4]\r\n     struct __truth_type<true>\r\n            ^           ~~~~~~\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk//usr/include/c++/4.2.1/bits/cpp_type_traits.h:110:3:{110:3-110:33}: error: templates must have C++ linkage [2]\r\n   template<class _Sp, class _Tp>\r\n   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk//usr/include/c++/4.2.1/bits/cpp_type_traits.h:118:3:{118:3-118:31}: error: templates must have C++ linkage [2]\r\n   template<typename, typename>\r\n   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk//usr/include/c++/4.2.1/bits/cpp_type_traits.h:126:12:{126:22-126:32}: error: explicit specialization of non-template struct '__are_same' [4]\r\n     struct __are_same<_Tp, _Tp>\r\n            ^         ~~~~~~~~~~\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk//usr/include/c++/4.2.1/bits/cpp_type_traits.h:125:3:{125:3-125:25}: error: templates must have C++ linkage [2]\r\n   template<typename _Tp>\r\n   ^~~~~~~~~~~~~~~~~~~~~~\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk//usr/include/c++/4.2.1/bits/cpp_type_traits.h:133:3:{133:3-133:25}: error: templates must have C++ linkage [2]\r\n   template<typename _Tp>\r\n   ^~~~~~~~~~~~~~~~~~~~~~\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk//usr/include/c++/4.2.1/bits/cpp_type_traits.h:141:12:{141:21-141:27}: error: explicit specialization of non-template struct '__is_void' [4]\r\n     struct __is_void<void>\r\n            ^        ~~~~~~\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk//usr/include/c++/4.2.1/bits/cpp_type_traits.h:150:3:{150:3-150:25}: error: templates must have C++ linkage [2]\r\n   template<typename _Tp>\r\n   ^~~~~~~~~~~~~~~~~~~~~~\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk//usr/include/c++/4.2.1/bits/cpp_type_traits.h:161:12:{161:24-161:30}: error: explicit specialization of non-template struct '__is_integer' [4]\r\n     struct __is_integer<bool>\r\n            ^           ~~~~~~\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk//usr/include/c++/4.2.1/bits/cpp_type_traits.h:168:12:{168:24-168:30}: error: explicit specialization of non-template struct '__is_integer' [4]\r\n     struct __is_integer<char>\r\n            ^           ~~~~~~\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk//usr/include/c++/4.2.1/bits/cpp_type_traits.h:168:12: error: redefinition of '__is_integer' [2]\r\n/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk//usr/include/c++/4.2.1/bits/cpp_type_traits.h:161:12: note: previous definition is here\r\n     struct __is_integer<bool>\r\n            ^\r\nfatal error: too many errors emitted, stopping now [-ferror-limit=]\r\n20 errors generated.\r\nscons: *** [platform/iphone/game_center.iphone.debug.o] Error 1\r\nscons: building terminated because of errors.\r\n```"},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/154561632","html_url":"https://github.com/godotengine/godot/issues/2740#issuecomment-154561632","issue_url":"https://api.github.com/repos/godotengine/godot/issues/2740","id":154561632,"user":{"login":"romulox-x","id":7547356,"avatar_url":"https://avatars.githubusercontent.com/u/7547356?v=3","gravatar_id":"","url":"https://api.github.com/users/romulox-x","html_url":"https://github.com/romulox-x","followers_url":"https://api.github.com/users/romulox-x/followers","following_url":"https://api.github.com/users/romulox-x/following{/other_user}","gists_url":"https://api.github.com/users/romulox-x/gists{/gist_id}","starred_url":"https://api.github.com/users/romulox-x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romulox-x/subscriptions","organizations_url":"https://api.github.com/users/romulox-x/orgs","repos_url":"https://api.github.com/users/romulox-x/repos","events_url":"https://api.github.com/users/romulox-x/events{/privacy}","received_events_url":"https://api.github.com/users/romulox-x/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T22:26:39Z","updated_at":"2015-11-06T22:26:39Z","body":"I see from your comment on the closed PR that fixed this, you're on Xcode 7.  You can fix this by moving the offending lines outside the 'extern C' blocks, but it's unclear how it's going to affect building in Xcode 6, since no one I've talked to so far has it.  In the example error you've posted, this means moving the GameKit.h line outside that extern C scope.  It's the same for the other errors that will follow.  Only a few files have this problem.  You can see them in the closed PR, mixed in with the other changes.\r\n\r\nI'm starting to think we should just commit the change that fixes this, and see if anyone in Xcode 6 has a problem.  I'm not a big fan of this \"just use it and see what breaks\" approach, but since no one with Xcode 6 has chimed in yet, we have no other way to test these changes.  We know it's broken in 7.  I suppose fixing it in 7 and possibly breaking it in 6 is better than leaving it definitely broken in 7."}}