Skip to content

Failed to debug project with LLDB in SPM #425

@SpectralDragon

Description

@SpectralDragon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions