I am trying to pass in a function from java as a parameter to a c++ function and I keep getting error: implicit instantiation of undefined template 'std::function<void ()>' #722
Unanswered
sungho-park-23
asked this question in
Q&A
Replies: 1 comment 2 replies
-
That probably means you forgot to |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I keep seeing this when I try to build on Maven:
I believe I may be doing something wrong, but what I hope to do is something like the example in https://github.com/bytedeco/javacpp#creating-callback-functions -- where there is
public static native void sort(IntPointer first, IntPointer last, @ByVal Callback compare);
and try to call sort from java side.Can someone help me figure out the correct way to do this?
Code looks like
C++ side:
java side:
Beta Was this translation helpful? Give feedback.
All reactions