Connecting Tech Pros Worldwide Help | Site Map

How to compile?

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 8th, 2005, 03:25 AM
Weasel
Guest
 
Posts: n/a
Default How to compile?

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, 04:25 AM
Mike Wahler
Guest
 
Posts: n/a
Default 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, 05:35 AM
Zhaohui
Guest
 
Posts: n/a
Default 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, 05:45 AM
ecky-l@web.de
Guest
 
Posts: n/a
Default 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, 06:45 AM
John Harrison
Guest
 
Posts: n/a
Default 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, 02:55 PM
Weasel
Guest
 
Posts: n/a
Default Re: How to compile?

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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.