I am compiling two Java packages generated by SWIG into one shared library. The compilation fails with "duplicated definition" error. I successfully solved the problem passing '-DSWIG_NOINCLUDE' to the C pre-processor. Now I wounder if it is the correct solution? I also noticed '-noruntime' by it is said to be deprecated. But I could not find in favor of what it was deprecated.
Thank you in advance!