Connecting Tech Pros Worldwide Help | Site Map

How to compile?

  #1  
Old November 8th, 2005, 04:25 AM
Weasel
Guest
 
Posts: n/a
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?

  #2  
Old November 8th, 2005, 05:25 AM
Mike Wahler
Guest
 
Posts: n/a

re: How to compile?



"Weasel" <Weaselwoot@gmail.com> wrote in message
news:1131423182.763506.286990@g47g2000cwa.googlegr oups.com...[color=blue]
> How to compile a file in Cygwin!???[/color]

Read The Directions.
[color=blue]
>
> Ok is it the same as in linux? g++ -g -Wall Filename.cpp?[/color]

Linux is an operating system kernel, not a compiler.
[color=blue]
>
> cause when i type that it says cannot find command g++
>
> whats wrong?[/color]

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

-Mike


  #3  
Old November 8th, 2005, 06:35 AM
Zhaohui
Guest
 
Posts: n/a

re: How to compile?


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

"Weasel" <Weaselwoot@gmail.com> wrote in message
news:1131423182.763506.286990@g47g2000cwa.googlegr oups.com...[color=blue]
> 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?
>[/color]


  #4  
Old November 8th, 2005, 06:45 AM
ecky-l@web.de
Guest
 
Posts: n/a

re: How to compile?


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

  #5  
Old November 8th, 2005, 07:45 AM
John Harrison
Guest
 
Posts: n/a

re: How to compile?


Weasel wrote:[color=blue]
> 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?
>[/color]

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
  #6  
Old November 8th, 2005, 03:55 PM
Weasel
Guest
 
Posts: n/a

re: How to compile?


Thanks lol that was it i forgot to dl the g++.exe file lol ty

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
failed to compile boost.system with msvc-7.1 BruceWho answers 2 June 27th, 2008 05:36 PM
How to compile and run program at the same time with BCC32 in SciTE? Billy answers 4 February 10th, 2008 10:55 AM
Problems trying to compile very simple code Michael answers 5 March 20th, 2007 12:05 AM
Shortcut to compile a file of any type Torben Laursen answers 5 November 24th, 2006 04:25 PM
XSLT-C problems. Can't get to compile. Jordan Willms answers 0 July 20th, 2005 08:49 AM