How to compile?

Discussion in 'C++' started by Weasel, Nov 8, 2005.

  1. Weasel

    Weasel Guest

    How to compile a file in Cygwin!???

    Ok is it the same as in linux? g++ -g -Wall Filename.cpp?

    cause when i type that it says cannot find command g++

    whats wrong?
     
    Weasel, Nov 8, 2005
    #1
    1. Advertising

  2. Weasel

    Mike Wahler Guest

    "Weasel" <> wrote in message
    news:...
    > How to compile a file in Cygwin!???


    Read The Directions.

    >
    > Ok is it the same as in linux? g++ -g -Wall Filename.cpp?


    Linux is an operating system kernel, not a compiler.

    >
    > cause when i type that it says cannot find command g++
    >
    > whats wrong?


    What's wrong is that you didn't read the Cygwin documentation.

    -Mike
     
    Mike Wahler, Nov 8, 2005
    #2
    1. Advertising

  3. Weasel

    Zhaohui Guest

    ^_^
    maybe you should install gcc package before start compile your
    program.

    "Weasel" <> wrote in message
    news:...
    > How to compile a file in Cygwin!???
    >
    > Ok is it the same as in linux? g++ -g -Wall Filename.cpp?
    >
    > cause when i type that it says cannot find command g++
    >
    > whats wrong?
    >
     
    Zhaohui, Nov 8, 2005
    #3
  4. Weasel

    Guest

    Apart from that you probably didn't install the gcc package (as
    mentioned by the others above), the command is the same.
    There are some special switches available that differ from g++ on linux
    - can be figured out with the documentation.


    Eckhard
     
    , Nov 8, 2005
    #4
  5. Weasel wrote:
    > How to compile a file in Cygwin!???
    >
    > Ok is it the same as in linux? g++ -g -Wall Filename.cpp?
    >
    > cause when i type that it says cannot find command g++
    >
    > whats wrong?
    >


    That's how you do it. The problem is probably that you didn't download
    gcc, it doesn't download by default. Go back and read the instrcutions.

    john
     
    John Harrison, Nov 8, 2005
    #5
  6. Weasel

    Weasel Guest

    Thanks lol that was it i forgot to dl the g++.exe file lol ty
     
    Weasel, Nov 8, 2005
    #6
    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