#眉標=Open Source #副標=Linux應用程式開發環境 #大標=EeePC程式開發環境初探 #作者=文圖/Quark ========<反灰>=================== dpkg -l | grep libc6 ================================ =============<反灰>=================== apt-get install gcc libc6-dev =================================== =============<反灰>=================== gcc -o helloworld helloworld.c =================================== =============<反灰>=================== apt-get install libgtk2.0-dev =================================== =============<反灰>=================== gcc -o gtkhello gtkhello.c `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0` =================================== =============<反灰>=================== apt-get install libqt3-mt-dev =================================== =============<反灰>=================== g++ -o qthello qthello.cc -lqt-mt =================================== =============程式1 =================== #include #include int main( int argc, char **argv ) { QApplication a( argc, argv ); QPushButton hello( "Hello world!", 0 ); hello.resize( 100, 30 ); a.setMainWidget( &hello ); hello.show(); return a.exec(); } ===================================