https://github.com/rockfordwei/csweet
demo how to use C++ in Swift 3.1/4.0
https://github.com/rockfordwei/csweet
cplusplus cplusplus-11 cpp cpp11 swift swift-package-manager
Last synced: 2 months ago
JSON representation
demo how to use C++ in Swift 3.1/4.0
- Host: GitHub
- URL: https://github.com/rockfordwei/csweet
- Owner: RockfordWei
- Created: 2017-08-27T18:08:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-11T01:01:07.000Z (about 7 years ago)
- Last Synced: 2025-04-10T01:08:01.839Z (2 months ago)
- Topics: cplusplus, cplusplus-11, cpp, cpp11, swift, swift-package-manager
- Language: Swift
- Size: 2.93 KB
- Stars: 12
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# USING CPP IN SWIFT 4.1
This is a demo to show how to bridge C++ in your Swift source.
## C++11 Feature
To enable C++11 Feature, using `-std=c++11` flag, for example:
```
# build:
swift build -Xcxx -std=c++11# build release:
swift build -c release -Xcxx -std=c++11# test:
swift test -Xcxx -std=c++11# run:
swift run -Xcxx -std=c++11
```If using Xcode, then such flags as above must be set as well.