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

Compilation fails using char* #1366

Open
bluesilenceln opened this issue Mar 21, 2024 · 1 comment
Open

Compilation fails using char* #1366

bluesilenceln opened this issue Mar 21, 2024 · 1 comment

Comments

@bluesilenceln
Copy link

bluesilenceln commented Mar 21, 2024

Describe the bug
error[E0599]: no function or associated item named new found for struct root::A in the current scope

To Reproduce

typedef struct A {
    char * b;
}A;
use autocxx::prelude::*;

include_cpp! {
    #include "declare.h"
    safety!(unsafe_ffi)
    generate!("A")
}

fn main() {
    let a = ffi::A::new();
}
@adetaylor
Copy link
Collaborator

Please could you raise a PR containing a failing test per these instructions

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

2 participants