From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Me Myself and I <stargate7thsymbol@live.co.uk>
Cc: java@gcc.gnu.org, gcc-help@gcc.gnu.org
Subject: Re: GCJ on Linux
Date: Tue, 21 Feb 2012 11:25:00 -0000 [thread overview]
Message-ID: <CAH6eHdSDtXh=Scfdm3YsjUYb5su2Eew_tz8ZHD+XSh+TMX+ddw@mail.gmail.com> (raw)
In-Reply-To: <BAY147-W20DB521E79F72666FA3F22D0670@phx.gbl>
On 21 February 2012 10:30, Me Myself and I wrote:
>
> Does gcj on Linux give the option to compile for windows?
No. GNU/Linux and Windows have entirely different, incompatible
runtime environments, you can't just say "I want this to run on
Windows" and expect a GNU/Linux compiler to link to the Windows
runtime. You'd need a cross-compiler targeting Windows, as described
at rmathew's document that you've been posting, which would need
copies of all the Windows runtime files (i.e. the binaries for
"mingw-runtime" and "w32api")
> Can someone tell me what the appropriate windows switch is?
>
> I have a 64 bit Linux OS install. IS there a 32 bit compile switch, and does anyone know it?
Assuming you're talking about x86, it's -m32, as documented in the GCC manual.
Maybe it would be easier to just run normal Java code on Windows,
instead of compiling to native code with gcj.
next prev parent reply other threads:[~2012-02-21 11:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-21 5:32 Please, there now has to be someone who can get this working! Me Myself and I
2012-02-21 10:14 ` David Paterson
2012-02-21 10:30 ` GCJ on Linux Me Myself and I
2012-02-21 11:25 ` Jonathan Wakely [this message]
2012-02-21 11:27 ` Please, there now has to be someone who can get this working! Jonathan Wakely
2012-02-22 1:54 ` Me Myself and I
2012-02-22 2:08 ` Jonathan Wakely
2012-02-22 2:11 ` Jonathan Wakely
2012-02-22 3:02 ` Me Myself and I
-- strict thread matches above, loose matches on Subject: below --
2000-04-01 0:00 GCJ on Linux Andrew Zahra
2000-04-01 0:00 ` Alexandre Petit-Bianco
2000-04-01 0:00 Andrew Zahra
2000-04-01 0:00 Boehm, Hans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH6eHdSDtXh=Scfdm3YsjUYb5su2Eew_tz8ZHD+XSh+TMX+ddw@mail.gmail.com' \
--to=jwakely.gcc@gmail.com \
--cc=gcc-help@gcc.gnu.org \
--cc=java@gcc.gnu.org \
--cc=stargate7thsymbol@live.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).