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 :
0 意見:
張貼留言