This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc -o Foo Foo.java Doesn't Produce Foo
- From: Andrew Haley <aph at redhat dot com>
- To: eus at member dot fsf dot org
- Cc: David Daney <ddaney at avtrex dot com>, GCC Help Mailing List <gcc-help at gcc dot gnu dot org>
- Date: Thu, 17 Jul 2008 16:00:06 +0100
- Subject: Re: gcc -o Foo Foo.java Doesn't Produce Foo
- References: <914728.83671.qm@web37601.mail.mud.yahoo.com>
Eus wrote:
> Hi Ho!
>
> --- On Thu, 7/17/08, Andrew Haley <aph@redhat.com> wrote:
>
>> First, make sure you can create a dynamically linked
>> executable.
>> If that doesn't work either, tell us.
>
> Yes, Foo was produced and could be executed successfully if it was compiled and dynamically linked with the following command:
>
> gcj -o Foo Foo.java --main=Foo
>
> However, when I tried all of the steps given on the wiki once again (this time by copying and pasting), Foo was produced.
>
> Looking at my Bash history, it turned out that I made a mistake when typing the last step:
> $ gcc -o Foo ... -Wl,-non_hsared ...
>
> Because of this, Foo was not produced.
>
> Is there a switch that can force GCC to produce an error message for this kind of mis-typed word?
No. All arguments beginning with -Wl, are passed to the linker.
Andrew.