This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Not add leading underscore in function name in DLL
- From: Borneq <borucki dot andrzej at gmail dot com>
- To: java at gcc dot gnu dot org
- Date: Wed, 4 Sep 2013 12:53:44 -0700 (PDT)
- Subject: Not add leading underscore in function name in DLL
- Authentication-results: sourceware.org; auth=none
I try make Java native function by JNI.
I have in Java code:
package net.sf.junace;
public class UnACE {
native void nativeACEList(String ArchiveName, ACEList struct);
}
javah make in net_sf_junace_UnACE.h :
JNIEXPORT void JNICALL Java_net_sf_junace_UnACE_nativeACEList
when compile by Visual C++, it add leading underscore to function name :
_Java... and it is OK, but when compile with GCC it not add.
I try use option "-Wl,--kill-at" but this not helps.
I don't want change *.h file because it is autogenerated.
--
View this message in context: http://gcc.1065356.n5.nabble.com/Not-add-leading-underscore-in-function-name-in-DLL-tp965830.html
Sent from the gcc - java mailing list archive at Nabble.com.