Windows: April 2011 Archives

MinGW

user-pic
Vote 0 Votes

MinGW 是 "Minimalist GNU for Windows" 的縮寫,
簡單講它就是 Linux GCC 移植到 Windows 下的 C/C++ Compiler
Cygwin 不同的是, 編好的執行檔不需要其他的 DLL 檔
來個 hello, world 測一下
#include

int main() {
printf("hello, world\n");
}

C:\MinGW\bin>gcc hello.c -o hello.exe

C:\MinGW\bin>hello.exe
hello, world

Linux 程式移植到 Windows, 會有一些地方需要改,
例如 #include <sys/socket.h> 要改成 #include <Winsock2.h>

ref. MinGW 與 Cygwin 的不同處

Batch FTP in Windows

user-pic
Vote 0 Votes

Put file Example: (7777 is password)

ftp -in somehost.com << EOF
user foobar 7777
cd aaa
bin
put photo.jpg
bye
EOF

About this Archive

This page is an archive of entries in the Windows category from April 2011.

Windows: March 2011 is the previous archive.

Windows: June 2011 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives