Replies: 3 comments 2 replies
-
Foo is already a Pointer, remove the [] |
Beta Was this translation helpful? Give feedback.
0 replies
-
my function is returning a std::vector<Foo>. could you explain more please?
thanks.
…On Wed, Jan 29, 2025 at 3:04 PM Samuel Audet ***@***.***> wrote:
Foo is already a Pointer, remove the []
—
Reply to this email directly, view it on GitHub
<#795 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6NWEK2YQ6P275B3XXNADA32NFM6BAVCNFSM6AAAAABWDPS36CVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMBQGA4TQMA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
if the C++ function returns a std::vector<Foo> then doesn't the Java method
has to return either an array or an ArrayList?
…On Wed, Jan 29, 2025 at 5:18 PM Samuel Audet ***@***.***> wrote:
So try @stdvector Foo instead
—
Reply to this email directly, view it on GitHub
<#795 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6NWEKZJUBABFICTDTGW35L2NF4W5AVCNFSM6AAAAABWDPS36CVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMBQGE3TGNA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying to use this library to interface with some C++ code. My C++ header is like this:
How can I map this to Java? I am trying:
but when I call
myfun
I get:The problem is when the function is returning the values. the null pointer is the return value
Foo[]
.Beta Was this translation helpful? Give feedback.
All reactions