Connecting Tech Pros Worldwide Help | Site Map

How to compile?

Weasel
Guest
 
Posts: n/a
#1: Nov 8 '05
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?

Mike Wahler
Guest
 
Posts: n/a
#2: Nov 8 '05

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


Zhaohui
Guest
 
Posts: n/a
#3: Nov 8 '05

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]


ecky-l@web.de
Guest
 
Posts: n/a
#4: Nov 8 '05

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

John Harrison
Guest
 
Posts: n/a
#5: Nov 8 '05

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
Weasel
Guest
 
Posts: n/a
#6: Nov 8 '05

re: How to compile?


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

Closed Thread