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
I have a c++ function which takes a std::vector<double> as the input, and returns a double. I wrap it as follows
std::vector<double>
double
JLCXX_MODULE define_julia_module(jlcxx::Module& mod) { mod.method("GF6", &GF6); }
In julia, I have
module CppGF PATH_TO_CPPLIB = "path_to_cpplib" using CxxWrap @wrapmodule(PATH_TO_CPPLIB) function __init__() @initcxx end end
This does work most time, but sometimes I got memory-related errors, like free(): invalid pointer from the line
free(): invalid pointer
@wrapmodule(PATH_TO_CPPLIB)
Does anyone have ideas about this issue?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a c++ function which takes a
std::vector<double>
as the input, and returns adouble
. I wrap it as followsIn julia, I have
This does work most time, but sometimes I got memory-related errors, like
free(): invalid pointer
from the lineDoes anyone have ideas about this issue?
The text was updated successfully, but these errors were encountered: