Title: Question on building a hybrid C/C++ extension. · Issue #21 · pybind/python_example · GitHub
Open Graph Title: Question on building a hybrid C/C++ extension. · Issue #21 · pybind/python_example
X Title: Question on building a hybrid C/C++ extension. · Issue #21 · pybind/python_example
Description: While trying to use pybind11 for interfacing a hybrid C/C++ codebase, following your example project, I encountered the following problem: If the source files are a mix of C and C++ files, some compilers (most notably clang) complain and...
Open Graph Description: While trying to use pybind11 for interfacing a hybrid C/C++ codebase, following your example project, I encountered the following problem: If the source files are a mix of C and C++ files, some com...
X Description: While trying to use pybind11 for interfacing a hybrid C/C++ codebase, following your example project, I encountered the following problem: If the source files are a mix of C and C++ files, some com...
Opengraph URL: https://github.com/pybind/python_example/issues/21
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Question on building a hybrid C/C++ extension.","articleBody":"While trying to use pybind11 for interfacing a hybrid C/C++ codebase, following your example project, I encountered the following problem:\r\n\r\nIf the source files are a mix of C and C++ files, some compilers (most notably clang) complain and stop if the \"-std=c++14\" flag is supplied when compiling a C file. \r\n\r\nThis is of course completely reasonable, but even after extensive searching on the web I did not find a way to specify separate C and C++ compilation flags to setuptools (in analogy to CFLAGS and CXXFLAGS use by autotools).\r\n\r\nDo you happen to know a trick how to achieve this? If so, I think it would be great if this could be added to your test project, to illustrate how it is done!\r\n","author":{"url":"https://github.com/mreineck","@type":"Person","name":"mreineck"},"datePublished":"2017-04-12T11:29:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/21/python_example/issues/21"}
| 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:f254971a-02ad-0efb-7019-14772b793405 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DBBE:FBE95:416B4:59F41:6A516B2A |
| html-safe-nonce | b24321167f4030eb9f6d4a2431068fd77add8ef5334781b4ca6b28945eee3a3c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkJFOkZCRTk1OjQxNkI0OjU5RjQxOjZBNTE2QjJBIiwidmlzaXRvcl9pZCI6Ijg4MjExNjE3MDg3MTYzODcxMTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2aac654e6ef6cdfafe366436759e6b944206f8d0c60a36923590cd6d3bc51ab3 |
| hovercard-subject-tag | issue:221232643 |
| 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/pybind/python_example/21/issue_layout |
| twitter:image | https://opengraph.githubassets.com/525eec40b295a7e9fec2934321aa240ba7999c1a0b4ff92de8159b0c76e48ade/pybind/python_example/issues/21 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/525eec40b295a7e9fec2934321aa240ba7999c1a0b4ff92de8159b0c76e48ade/pybind/python_example/issues/21 |
| og:image:alt | While trying to use pybind11 for interfacing a hybrid C/C++ codebase, following your example project, I encountered the following problem: If the source files are a mix of C and C++ files, some com... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mreineck |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/pybind/python_example git https://github.com/pybind/python_example.git |
| octolytics-dimension-user_id | 17565521 |
| octolytics-dimension-user_login | pybind |
| octolytics-dimension-repository_id | 50649061 |
| octolytics-dimension-repository_nwo | pybind/python_example |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 50649061 |
| octolytics-dimension-repository_network_root_nwo | pybind/python_example |
| 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 | 60eaaf6d4dbaa817031b556aebd8a0a7eeb81b97 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width