勇's profile燃烧的烟PhotosBlogListsMore Tools Help

Blog


    9/4/2009

    Ubuntu9.04 配置Eclipse 中C语言编译环境及GTK+

    一、首先按装好了Eclipse,这个网上有,一搜一大把。
    二、下载CDT,进行安装。启动Eclipse,多了C和C++ Project支持。
    三、查看GTK ,并安装:http://blog.chinaunix.net/u/2738/showart_227945.html#4.1%20%E7%B3%BB%E7%BB%9F%E4%B8%8A%E6%9C%AA%E5%AE%89%E8%A3%85%20GTK+
    四,Eclipse 中C语言编译环境对GTK的支持:
    http://blog.csdn.net/cogent2001/archive/2007/08/15/1745798.aspx
    Eclipse 中:
    Project -> Property -> C/C++Build  -> Settings -> Tab "Tool Setting" 上

    1. GCC C Compiler -> Miscellaneous
     在Other flags里面的 -c -fmessage-length=0 后面添加
    `pkg-config --cflags --libs gtk+-2.0`

    2.GCC C Linker -> Libraries
    在 Library search path(-L)里面添加
    `pkg-config --cflags --libs gtk+-2.0`

    注意在Library search path里面添加后会多出双引号,选编辑然后把双引号去掉就行了


    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://lhyong.spaces.live.com/blog/cns!ABFCEAA8CBC8F4C8!958.trak
    Weblogs that reference this entry
    • None