Re: mingw32 and jdk/jni

"Paul Edwards" <[email protected]> Wed, 23 Sep 2020 11:53:18 +1000
Newsgroups gmane.comp.gnu.mingw.user
Message-ID <C2D587E0CE0140248B8C9B24995385E2@DESKTOP0OKG1VA>
Hi Keith. Thanks for your reply.

>> Any ideas? Relevant technical info below.

> Looks like the classical user error of getting the linking order utterly
> wrong!  (It hasn't arisen recently, but used to come up regularly).

This was indeed the problem. Now that I have
changed it to:

mingw32-gcc -s -o mary.exe \
-I "C:\Program Files (x86)\Java\jdk1.8.0_221\include" \
-I "C:\Program Files (x86)\Java\jdk1.8.0_221\include\win32" \
mary.c \
-L "C:\Program Files (x86)\Java\jdk1.8.0_221\lib" \
-ljvm

my application links successfully, and after resolving
unrelated problems, started to run too.

Thanks. Paul.

_______________________________________________
MinGW-Users mailing list
[email protected]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe