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. Advertisements

  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. Advertisements

  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. Advertisements

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. Marco Vajda

    How to compile a program in VB.NET?

    Marco Vajda, Oct 5, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    4,024
    Dino Chiesa [Microsoft]
    Oct 9, 2003
  2. Rafael Lopez

    USERS DOMAIN COMPILE RIGHTS VISUAL STUDIO

    Rafael Lopez, Oct 25, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    459
    Rafael Lopez
    Oct 25, 2003
  3. Ognian Obretenov

    while compile - screen blinking

    Ognian Obretenov, Jan 30, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    499
    Ognian Obretenov
    Jan 30, 2004
  4. Nagaraj
    Replies:
    1
    Views:
    1,205
    Lionel B
    Mar 1, 2007
  5. timjowers
    Replies:
    7
    Views:
    4,739
    heyjude
    Feb 2, 2011
  6. Replies:
    1
    Views:
    612
    Cowboy \(Gregory A. Beamer\)
    Apr 11, 2008
  7. Carter
    Replies:
    2
    Views:
    691
    Carter
    Mar 4, 2009
  8. fAnSKyer
    Replies:
    2
    Views:
    727
    Alf P. Steinbach
    Jun 7, 2009
Loading...