Skip to content
New issue

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

Failed to debug project with LLDB in SPM #425

Open
SpectralDragon opened this issue Jul 15, 2024 · 0 comments
Open

Failed to debug project with LLDB in SPM #425

SpectralDragon opened this issue Jul 15, 2024 · 0 comments

Comments

@SpectralDragon
Copy link

Hi there!
When I use Yams in SPM project with C++ interop, I encounter the next error:

/SourcePackages/checkouts/Yams/Sources/CYaml/include/yaml.h:21:1: import of C++ module 'std_string_h' appears within extern "C" language linkage specification
#include <string.h>
^
<module-includes>:2:9: note: in file included from <module-includes>:1:<module-includes>:2:
#import "yaml.h"
        ^
/SourcePackages/checkouts/Yams/Sources/CYaml/include/yaml.h:16:1: note: extern "C" language linkage specification begins here
extern "C" {
^
error: could not build Objective-C module 'CYaml'
error: couldn't IRGen expression: Clang importer error
error: /SourcePackages/checkouts/Yams/Sources/CYaml/include/yaml.h:20:1: import of C++ module 'std_string_h' appears within extern "C" language linkage specification
#include <string.h>
^

I've no idea what the problem is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant