This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Not add leading underscore in function name in DLL


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]