We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tested with Swift 3.0 and 3.0.1 on Darwin and Linux.
md5: 850e64042f6694e1a10e9735daaf75a4
Issue Description:
With the minimal C++ fixture from https://github.com/aciidb0mb3r/SPM-Cpp-Fixture, `swift build` fails with the following output:
Compile cpplib cpplib.cpp Linking cpplib Compile cwrapper cwapper.cpp Compile cpp-exec main.cpp Linking cwrapper Compile Swift Module 'swift_exec' (1 sources) Linking ./.build/debug/swift-exec Linking cpp-exec Undefined symbols for architecture x86_64: "std::__1::basic_ostream<char, std::__1::char_traits<char> >::operator<<(int)", referenced from: _main in main.cpp.o "std::__1::cout", referenced from: _main in main.cpp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) <unknown>:0: error: build had 1 command failures
The text was updated successfully, but these errors were encountered:
Looks like SwiftPM is not detecting C++ files for some reason. A simple workaround for now is:
swift build -Xlinker -lc++
Sorry, something went wrong.
#784
PR was just closed. Thanks Ankit! #784
ankitspd
No branches or pull requests
Environment
Tested with Swift 3.0 and 3.0.1 on Darwin and Linux.
Additional Detail from JIRA
md5: 850e64042f6694e1a10e9735daaf75a4
Issue Description:
With the minimal C++ fixture from https://github.com/aciidb0mb3r/SPM-Cpp-Fixture, `swift build` fails with the following output:
The text was updated successfully, but these errors were encountered: