How to compile?

W

Weasel

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?
 
M

Mike Wahler

Weasel said:
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
 
E

ecky-l

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
 
J

John Harrison

Weasel said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top