public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
* Not add leading underscore in function name in DLL
@ 2013-09-04 19:53 Borneq
  0 siblings, 0 replies; only message in thread
From: Borneq @ 2013-09-04 19:53 UTC (permalink / raw)
  To: java

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-04 19:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-04 19:53 Not add leading underscore in function name in DLL Borneq

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).