Title: Rcpp compiles using -std=gnu++11 but not -std=c++11. Is this a toolchain issue or an Rcpp issue? · Issue #360 · RcppCore/Rcpp · GitHub
Open Graph Title: Rcpp compiles using -std=gnu++11 but not -std=c++11. Is this a toolchain issue or an Rcpp issue? · Issue #360 · RcppCore/Rcpp
X Title: Rcpp compiles using -std=gnu++11 but not -std=c++11. Is this a toolchain issue or an Rcpp issue? · Issue #360 · RcppCore/Rcpp
Description: Whilst trying to test the new Windows toolchains based on GCC 4.9.x, I have come across an interesting issue. When I compile Rcpp with either nothing or std=gnu++11, Rcpp compiles without any issues. However, when I pass std=c++11 I get:...
Open Graph Description: Whilst trying to test the new Windows toolchains based on GCC 4.9.x, I have come across an interesting issue. When I compile Rcpp with either nothing or std=gnu++11, Rcpp compiles without any issue...
X Description: Whilst trying to test the new Windows toolchains based on GCC 4.9.x, I have come across an interesting issue. When I compile Rcpp with either nothing or std=gnu++11, Rcpp compiles without any issue...
Opengraph URL: https://github.com/RcppCore/Rcpp/issues/360
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Rcpp compiles using -std=gnu++11 but not -std=c++11. Is this a toolchain issue or an Rcpp issue?","articleBody":"Whilst trying to test the new Windows toolchains based on GCC 4.9.x, I have come across an interesting issue. When I compile Rcpp with either nothing or `std=gnu++11`, Rcpp compiles without any issues. However, when I pass `std=c++11` I get:\n\n```\n* installing *source* package 'Rcpp' ...\n** package 'Rcpp' successfully unpacked and MD5 sums checked\n** libs\ng++ -m64 -I\"C:/R/R-PATC~2/include\" -DNDEBUG -I../inst/include/ -I\"C:/R/RLocalSoft/extsoft/include\" -std=c++11 -O2 -mtune=ivybridge -pipe -c Date.cpp -o Date.o\ng++ -m64 -I\"C:/R/R-PATC~2/include\" -DNDEBUG -I../inst/include/ -I\"C:/R/RLocalSoft/extsoft/include\" -std=c++11 -O2 -mtune=ivybridge -pipe -c Module.cpp -o Module.o\ng++ -m64 -I\"C:/R/R-PATC~2/include\" -DNDEBUG -I../inst/include/ -I\"C:/R/RLocalSoft/extsoft/include\" -std=c++11 -O2 -mtune=ivybridge -pipe -c Rcpp_init.cpp -o Rcpp_init.o\ng++ -m64 -I\"C:/R/R-PATC~2/include\" -DNDEBUG -I../inst/include/ -I\"C:/R/RLocalSoft/extsoft/include\" -std=c++11 -O2 -mtune=ivybridge -pipe -c api.cpp -o api.o\napi.cpp:40:30: fatal error: execinfo.h: No such file or directory\n #include \u003cexecinfo.h\u003e\n ^\ncompilation terminated.\nmake: *** [api.o] Error 1\nWarning: running command 'make -f \"Makevars.win\" -f \"C:/R/R-PATC~2/etc/x64/Makeconf\" -f \"C:/R/R-PATC~2/share/make/winshlib.mk\" -f \"\\\\[REDACTED]/.R/Makevars\" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB=\"Rcpp.dll\" WIN=64 TCLBIN=64 OBJECTS=\"Date.o Module.o Rcpp_init.o api.o attributes.o barrier.o\"' had status 2\nERROR: compilation failed for package 'Rcpp'\n* removing 'C:/R/R-patched/library/Rcpp'\n\nThe downloaded source packages are in\n ‘C:\\R\\temp\\Rtmp4mtdWr\\downloaded_packages’\nWarning messages:\n1: running command '\"C:/R/R-patched/bin/x64/R\" CMD INSTALL --byte-compile -l \"C:\\R\\R-patched\\library\" C:\\R\\temp\\Rtmp4mtdWr/downloaded_packages/Rcpp_0.12.0.tar.gz' had status 1 \n2: In install.packages(\"Rcpp\", type = \"source\", INSTALL_opts = \"--byte-compile\") :\n installation of package ‘Rcpp’ had non-zero exit status\n```\n\nIs this a toolchain issue, or an issue with Rcpp being built under Windows?\n\nThank you.\n","author":{"url":"https://github.com/aadler","@type":"Person","name":"aadler"},"datePublished":"2015-09-01T15:14:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/360/Rcpp/issues/360"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:aa18206e-9cd8-dba1-d7d3-6c9524651e8b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B82E:301463:5195AE:6AB8B9:696B42A6 |
| html-safe-nonce | 1d9479cde5f6bac1d50323769d5eba2967c5658144ff87d504b15585def3a280 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODJFOjMwMTQ2Mzo1MTk1QUU6NkFCOEI5OjY5NkI0MkE2IiwidmlzaXRvcl9pZCI6IjYxMzY0NzAxMTQwMjc2NTE3NTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c05fdf80d635c41e71efd28dddb9867126cbc8dd421105811c9039f50995cccd |
| hovercard-subject-tag | issue:104289076 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/RcppCore/Rcpp/360/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dff824a357504971d7edb4cfaceea8dbc5ed0cedda691c7a57a47cc942bf476e/RcppCore/Rcpp/issues/360 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dff824a357504971d7edb4cfaceea8dbc5ed0cedda691c7a57a47cc942bf476e/RcppCore/Rcpp/issues/360 |
| og:image:alt | Whilst trying to test the new Windows toolchains based on GCC 4.9.x, I have come across an interesting issue. When I compile Rcpp with either nothing or std=gnu++11, Rcpp compiles without any issue... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aadler |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/RcppCore/Rcpp git https://github.com/RcppCore/Rcpp.git |
| octolytics-dimension-user_id | 5811336 |
| octolytics-dimension-user_login | RcppCore |
| octolytics-dimension-repository_id | 14005591 |
| octolytics-dimension-repository_nwo | RcppCore/Rcpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14005591 |
| octolytics-dimension-repository_network_root_nwo | RcppCore/Rcpp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width