From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4727 invoked by alias); 4 Sep 2013 19:53:48 -0000 Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org Received: (qmail 4716 invoked by uid 89); 4 Sep 2013 19:53:48 -0000 Received: from sam.nabble.com (HELO sam.nabble.com) (216.139.236.26) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 04 Sep 2013 19:53:48 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.6 required=5.0 tests=BAYES_20,FREEMAIL_FROM,RDNS_NONE,SPF_SOFTFAIL,URI_HEX autolearn=no version=3.3.2 X-HELO: sam.nabble.com Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VHJ96-0004ZC-RH for java@gcc.gnu.org; Wed, 04 Sep 2013 12:53:44 -0700 Date: Wed, 04 Sep 2013 19:53:00 -0000 From: Borneq To: java@gcc.gnu.org Message-ID: <1378324424834-965830.post@n5.nabble.com> Subject: Not add leading underscore in function name in DLL MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2013-09/txt/msg00000.txt.bz2 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.