By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,903 Members | 1,304 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,903 IT Pros & Developers. It's quick & easy.

How to compile?

P: 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?

Nov 8 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a

"Weasel" <We********@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
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
Nov 8 '05 #2

P: n/a
^_^
maybe you should install gcc package before start compile your
program.

"Weasel" <We********@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
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?

Nov 8 '05 #3

P: n/a
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 '05 #4

P: n/a
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
Nov 8 '05 #5

P: n/a
Thanks lol that was it i forgot to dl the g++.exe file lol ty

Nov 8 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.