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]

Re: input line is too long


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


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