{"id":504,"date":"2012-08-01T10:30:34","date_gmt":"2012-08-01T16:30:34","guid":{"rendered":"https:\/\/halsafar.ca\/blog\/?p=504"},"modified":"2012-08-01T10:30:34","modified_gmt":"2012-08-01T16:30:34","slug":"android-ndk-gcc-4-6-update-bug-fix","status":"publish","type":"post","link":"https:\/\/halsafar.ca\/blog\/2012\/08\/01\/android-ndk-gcc-4-6-update-bug-fix\/","title":{"rendered":"Android NDK GCC 4.6 (Update) + Bug Fix"},"content":{"rendered":"<p>Now that GCC 4.6 has been made the default toolchain in the Android NDK there is no need to follow any special steps. Check out <a title=\"http:\/\/developer.android.com\/tools\/sdk\/ndk\/index.html\" href=\"http:\/\/developer.android.com\/tools\/sdk\/ndk\/index.html\">Android NDKr8b<\/a>.<\/p>\n<p>It has a known bug already. \u00a0The STANDALONE toolchain that some use build from the NDK incorrectly sets up the paths for C++ headers. \u00a0The fix is seen here on the bug report (<a href=\"https:\/\/android-review.googlesource.com\/#\/c\/39878\/\">https:\/\/android-review.googlesource.com\/#\/c\/39878\/<\/a>).<\/p>\n<p>In short:<\/p>\n<p><code><br \/>\nmv $NDK_TOOLCHAIN\/arm-linux-androideabi\/include\/c++\/4.6 $NDK_TOOLCHAIN\/arm-linux-androideabi\/include\/c++\/4.6.x-google<br \/>\n<\/code><\/p>\n<p>Enjoy the extra C++11 features such as lambda and constexpr.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that GCC 4.6 has been made the default toolchain in the Android NDK there is no need to follow any special steps. Check out Android NDKr8b. It has a known bug already. \u00a0The STANDALONE toolchain that some use build<span class=\"ellipsis\">&hellip;<\/span><\/p>\n<div class=\"read-more\"><a href=\"https:\/\/halsafar.ca\/blog\/2012\/08\/01\/android-ndk-gcc-4-6-update-bug-fix\/\">Read more <span class=\"screen-reader-text\">Android NDK GCC 4.6 (Update) + Bug Fix<\/span><span class=\"meta-nav\"> &#8250;<\/span><\/a><\/div>\n<p><!-- end of .read-more --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6],"tags":[9,71,73],"class_list":["post-504","post","type-post","status-publish","format-standard","hentry","category-android-development","category-halsafar","tag-android","tag-gcc","tag-ndk"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/posts\/504","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/comments?post=504"}],"version-history":[{"count":2,"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/posts\/504\/revisions"}],"predecessor-version":[{"id":506,"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/posts\/504\/revisions\/506"}],"wp:attachment":[{"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/media?parent=504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/categories?post=504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/tags?post=504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}