g++ compile help

Discussion in 'C++' started by fazulu deen, Jul 3, 2007.

  1. fazulu deen

    fazulu deen Guest

    Hai all,

    wat is the command to view warning messages..i used
    g++ -g -wall -o main main.cpp

    but getting...g++: unrecognized option `-wall'


    help me...

    fazal
     
    fazulu deen, Jul 3, 2007
    #1
    1. Advertising

  2. fazulu deen schrieb:
    > g++ -g -wall -o main main.cpp
    >
    > but getting...g++: unrecognized option `-wall'


    Try -Wall (upper case W)
     
    Chris Walrabe, Jul 3, 2007
    #2
    1. Advertising

  3. fazulu deen

    v0id Guest

    On 3 Jul., 12:57, fazulu deen <> wrote:
    > Hai all,
    >
    > wat is the command to view warning messages..i used
    > g++ -g -wall -o main main.cpp
    >
    > but getting...g++: unrecognized option `-wall'
    >
    > help me...
    >
    > fazal


    The parameters is case-sensitive.
    Try: -Wall, with an uppercase W, which stands for "Warnings".
     
    v0id, Jul 3, 2007
    #3
  4. fazulu deen

    Lionel B Guest

    On Tue, 03 Jul 2007 03:57:11 -0700, fazulu deen wrote:

    > Hai all,
    >
    > wat is the command to view warning messages..i used g++ -g -wall -o
    > main main.cpp
    >
    > but getting...g++: unrecognized option `-wall'


    This is compiler-specific and therefore off-topic here...

    .... but the answer is RTFM:

    http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Warning-Options.html

    --
    Lionel B
     
    Lionel B, Jul 3, 2007
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nagaraj
    Replies:
    1
    Views:
    871
    Lionel B
    Mar 1, 2007
  2. timjowers
    Replies:
    7
    Views:
    4,353
    heyjude
    Feb 2, 2011
  3. Replies:
    1
    Views:
    451
    Cowboy \(Gregory A. Beamer\)
    Apr 11, 2008
  4. Carter
    Replies:
    2
    Views:
    509
    Carter
    Mar 4, 2009
  5. fAnSKyer
    Replies:
    2
    Views:
    534
    Alf P. Steinbach
    Jun 7, 2009
Loading...

Share This Page