Hi, On 6/3/05, Jackey <[EMAIL PROTECTED]> wrote: > Can somebody help me if DirectFB does support static link?
or it was?. i got the similar problem on static linking my application with directfb. back then i notice on 0.9.22 there are no "tools/dfb_static_build_example" anymore; then i try to ./configure --enable-static=yes --enable-shared=no && make && make install nothing wrong everything seems ok. the static libs are built. but when i build my own apps .... [EMAIL PROTECTED]:~/tmp/edan$ gcc -g3 -o mytest `directfb-config --cflags --libs --graphics=nvidia --input=linux_input --font=ft2 --imageprovider=jpeg,png` mytest.c /tmp/ccGhaFPF.o: In function `main': /home/sridewa/tmp/edan/mytest.c:17: multiple definition of `main' /usr/local/lib/libdirect.a(dtest-dtest.o)(.text+0x0): first defined here /usr/bin/ld: Warning: size of symbol `main' changed from 100 to 667 in /tmp/ccGhaFPF.o collect2: ld returned 1 exit status [EMAIL PROTECTED]:~/tmp/edan$ apparently, the 'main' function already taken by the static library libdirect.a from the source dtest.c. is there are any clue on this? my tools were: GNU Make version 3.79.1 gcc (GCC) 3.4.4 i haven't try with another make nor gcc. regards, _______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
