Waiting for the wind

programming memo in different platforms

「Fedora Core 6′s Road」分類文章彙整

Get Process

發文作者 cotton5415 於 六月 24, 2008

Reference:
Technical Q&A QA1123: Getting List of All Processes on Mac OS X

發表於 Debian's Road, eee pc's road, Fedora Core 6's Road, MAC OS X's Road | 已加上的標籤: , | 張貼留言 »

GTK+ z-order problem

發文作者 cotton5415 於 四月 9, 2008

GTK+ has no the concept of Z-order with widgets, and is not able to track whether a Window is being obscured. But GTK+ can send expose events to widgets that may not currently be visible.

發表於 Debian's Road, eee pc's road, Fedora Core 6's Road | 張貼留言 »

x11 helper functions — blit frames to the screen

發文作者 cotton5415 於 四月 2, 2008

include opengl video

http://www.cs.fsu.edu/~baker/devices/lxr/http/source/xawtv-3.95/x11/blit.c

發表於 Debian's Road, eee pc's road, Fedora Core 6's Road | 張貼留言 »

blit banchmark on each platform

發文作者 cotton5415 於 四月 2, 2008

ref:

http://www.rocklyte.com/news_20030917.html

發表於 Debian's Road, eee pc's road, Embedded system's Road, Evolutionary Music, Fedora Core 6's Road, MAC OS X's Road, Win32's Road | 張貼留言 »

GTK+ important links references

發文作者 cotton5415 於 三月 28, 2008

http://www.gtk.org/documentation.html

發表於 Debian's Road, eee pc's road, Fedora Core 6's Road | 張貼留言 »

2d graphic library for Linux GraphicsMagick

發文作者 cotton5415 於 三月 27, 2008

it’s a branch of imageMagick 5.xxxx
reference:

http://www.graphicsmagick.org/www/api.html

發表於 Debian's Road, eee pc's road, Fedora Core 6's Road, MAC OS X's Road, web programming, Win32's Road | 張貼留言 »

make file link with dynamic and static libraries

發文作者 cotton5415 於 三月 21, 2008

  • to build static library
  • % gcc -c libtest.c -o libtest.o
    % ar rcs libtest.a libtest.o

  • to build dynamic library
  • -fPIC option tells gcc to create position independant code which is necessary for shared libraries

    % gcc -c -fPIC libtest.c -o libtest.o
    % gcc -shared -o libtest.so libtest.o

  • to use static library
  • % gcc -static main.c -L. -ltest -o testStatic

  • to use dynamic library
  • % gcc main.c -L. -ltest -o testDynamic

the source file of application who uses the library ltest, sould be located before -l options
-L<path to search libraries> (no spacing after -L)
-o <output file>
-l<lib_name> (no spacing after -l)

  • in static link, library name is lib.a ex: libtest.a libcheckitout.a or libxxxx.a
  • in dynamic link, library start with lib ex: libtest or libtest.so or lib….
  • gcc [options] -o

    發表於 Debian's Road, eee pc's road, Embedded system's Road, Fedora Core 6's Road, MAC OS X's Road | 張貼留言 »

    STL vector memory leak

    發文作者 cotton5415 於 二月 22, 2008

    ref: http://www.wretch.cc/blog/glCheng&article_id=7085161

    發表於 Debian's Road, Fedora Core 6's Road, MAC OS X's Road, Win32's Road | 張貼留言 »

    order of link libraries in makefile

    發文作者 cotton5415 於 十月 15, 2007

    example:
    libabc.a is an user make library, in this lib, use a function pow in linux lib -lm.
    in makefile you should
    $(CC) -o a.out -labc -lm
    if you
    $(CC) -o a.out -lm -labc
    there would be an link error

    發表於 Debian's Road, Embedded system's Road, Fedora Core 6's Road, MAC OS X's Road, Win32's Road | 張貼留言 »

    stray ‘\’ in program

    發文作者 cotton5415 於 九月 13, 2007

    problem
    compiling error:

    mmi_gfx_macro.h:21: parse error before `{‘
    mmi_gfx_macro.h:21: stray ‘\’ in program
    mmi_gfx_macro.h:22: stray ‘\’ in program

    root cause
    Possibly \ at “end" of a CRLF terminated line is not seen as
    line-continued?
    solution:
    %dos2unix <your_c_file>

    發表於 Debian's Road, Embedded system's Road, Fedora Core 6's Road, MAC OS X's Road, network programming, networking | 張貼留言 »

     
    Follow

    Get every new post delivered to your Inbox.