You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My use case will have C++ code be compiled with -fsigned-char. I want to typemap char pointer as array of signed char rather than string. I ran into this error when upgrading from an earlier version of swig to the latest v4.2.1. See the example below:
test_warp.cxx: In function'void Java_com_test_testJNI_bar(JNIEnv*, jclass, jbyteArray)':test_wrap.cxx:915:44: error: invalid conversion from 'char**' to 'signed char**' [-fpermissive] 915 | if(!SWIG_JavaArrayInSchar(jenv, &jarr1, (char **)&arg1, jarg1)) return ;
Versions
I found v4.2.0 and v4.2.1 both have this error.
This error does not happen in v4.1.1 and earlier versions, where the example given above can be compiled successfully.
I narrowed down the breaking change to commit 7bba06b by @wsfulton .
Please let me know if my use case is valid and any recommended alternatives.
The text was updated successfully, but these errors were encountered:
My use case will have C++ code be compiled with -fsigned-char. I want to typemap char pointer as array of signed char rather than string. I ran into this error when upgrading from an earlier version of swig to the latest v4.2.1. See the example below:
test.i
test.h
Bash Commands
swig -c++ -java -package com.test -outdir . test.i g++ -I/opt/jdk1.8.0_212/include -I/opt/jdk1.8.0_212/include/linux test_wrap.cxx
Error
Versions
I found v4.2.0 and v4.2.1 both have this error.
This error does not happen in v4.1.1 and earlier versions, where the example given above can be compiled successfully.
I narrowed down the breaking change to commit 7bba06b by @wsfulton .
Please let me know if my use case is valid and any recommended alternatives.
The text was updated successfully, but these errors were encountered: