Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: clusardi2k@aol.com Newsgroups: comp.lang.java.programmer Subject: Re: Using NetBeans 7.1.2 JNI: Windows 7 C and C++ Compiler Options Date: Tue, 19 Jun 2012 06:01:11 -0700 (PDT) Organization: http://groups.google.com Lines: 30 Message-ID: References: <34c3ac13-bfbe-44e1-befb-09a438cc4f8b@googlegroups.com> NNTP-Posting-Host: 198.151.13.60 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1340110872 8864 127.0.0.1 (19 Jun 2012 13:01:12 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 19 Jun 2012 13:01:12 +0000 (UTC) In-Reply-To: <34c3ac13-bfbe-44e1-befb-09a438cc4f8b@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=198.151.13.60; posting-account=r24XpwkAAABfAJg5TJRsTScS4AL5MjOT User-Agent: G2/1.0 X-Received-Bytes: 2211 Xref: csiph.com comp.lang.java.programmer:15413 Two Questions: (1) Here's an example that I've been trying to follow: http://netbeans.org/kb/docs/cnd/beginning-jni-linux.html For me, there are two problems with this example. One, it is for "Linux". I= 'm working on Windows 7 and have to use C compiler options to get this exam= ple to work. At the bottom is a direct quote from the linked Page. What sho= uld I use in place of "-shared -m32" for a C compiler on Windows 7. (2) Second, what would be the g++ compiler options if I use a C++ project i= n place of the C project example. Thanks, Direct Quote from Page: Beginning JNI with NetBeans IDE and C/C++ Plugin on Linux Setting Up a New C/C++ Dynamic Library Project 7. 7.Find the Command Line area of the C Compiler options. Click in the tex= t field of the Additional Options property and type -shared -m32. The -shared option tells the compiler to generate a dynamic library. The -m32 option tells the compiler to create a 32-bit binary. By default on= 64-bit systems the compiled binaries are 64-bit, which causes a lot of pro= blems with 32-bit JDKs.=20