2014年4月5日 星期六

[Gcc][Cygwin] How to compile c code by using cgywin on windows

[Gcc][Cygwin] How to compile c code by using cgywin on windows

1. Install Cygwin

Installing gcc with Cygwin

Select gcc-core and make to install.



2. Put the c code into C:\cygwin\home\happy>


3. Type   gcc Test.c

4. Execute Test.exe

User must copy cygwin1.dll to C:\cygwin\home\happy.

Otherwise execute Test.ext won't work.




a.

On Cygwin Terminal

$ cp bin/cygwin1.dll /home/happy/



b.

On Windows Terminal

C:\cygwin\home\happy>Test.exe



Reference :







Related Posts:

0 意見:

張貼留言