posted 20 years ago
Hi,
Im a bit confused about this
Here is the definition of CFLAGS that I use to build native methods with Cygwin gcc under Windows:
CFLAGS=-mrtd -D_REENTRANT -D_GNU_SOURCE -D__int64="long long" \
-mno-cygwin $(INCLUDES) -I$(JAVAHOME)/include -I$(JAVAHOME)/include/$(PLATFORM)
LDFLAGS looks like
LDFLAGS=-mno-cygwin -Wl,--add-stdcall-alias -shared -luser32 -lgdi32 \
-lglu32 -lopengl32 -L$(JAVAHOME)/lib -ljawt
I believe that it's the -D__int64="long long" that should fix your problem.
What i dont understand is where am i suppose to specify the cflags and ldflags options
in cygwin i normally just give the following command:
gcc -mno-cygwin -I$jdk/include -I$jdk/include/win32 -Wl,--add-stdcall-alias -shared -o HelloWorld.dll HelloWorld.c
Now where do i specify the cflags on the command line and how
and about -D__int64="long long" where do i specify that .
Im sorry for being a paing but im new to JNI and totally confused.
Regards,
Madhu