This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: input line is too long
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: java at gcc dot gnu dot org
- Cc: rmathew at hotmail dot com
- Date: Sat, 04 Jan 2003 03:27:29 +0000
- Subject: Re: input line is too long
- Reply-to: Danny Smith <dannysmith at users dot sourceforge dot net>
On Thu, 2 Jan 2003, Ranjit Mathew wrote:
> Unlike MSVC, the MinGW GCC/binutils toolchain does not export
> functions from an EXE, even if you explicitly add
> "__declspec(dllexport)" (which is what JNICALL is defined as on
> Win32) to the function definition.
A recent patch to binutils, still pending approval, allows just that.
http://sources.redhat.com/ml/binutils/2003-01/msg00042.html
Also it possible to build exe's that export function with current
binutils release using dlltool.
>From a post by Tor Lillqvist to mingw-users 2002-01-04
> You have to first compile main.c with
> gcc -c main.c
> then run
> dlltool --output-exp main.exp main.o
> then link it
> gcc -o main.exe main.o main.exp
Danny