How to compile a standalone gtk problem using mingw?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
     I have installed mingw32, when I use i686-pc-mingw32-gcc gtktest.c -o gtktest.exe `mingw32-pkg-config --libs --cflags gtk+-2.0`,It's OK.but  when I use i686-pc-mingw32-gcc gtktest.c -o gtktest.exe `mingw32-pkg-config --libs --cflags gtk+-2.0` --static , It shows these errors:
/usr/i686-pc-mingw32/sys-root/mingw/lib/libgdk-win32-2.0.a(gdkmain-win32.o):(.text+0x0): multiple definition of `_DllMain@12'
/usr/i686-pc-mingw32/sys-root/mingw/lib/libgtk-win32-2.0.a(gtkmain.o):(.text+0x7c0): first defined here
/usr/i686-pc-mingw32/sys-root/mingw/lib/libatk-1.0.a(atkobject.o):(.text+0x390): multiple definition of `_DllMain@12'
/usr/i686-pc-mingw32/sys-root/mingw/lib/libgtk-win32-2.0.a(gtkmain.o):(.text+0x7c0): first defined here
/usr/lib/gcc/i686-pc-mingw32/4.6.1/../../../../i686-pc-mingw32/bin/ld: cannot find -lgdk_pixbuf-2.0
/usr/i686-pc-mingw32/sys-root/mingw/lib/libpango-1.0.a(pango-utils.o):(.text+0xe80): multiple definition of `_DllMain@12'
/usr/i686-pc-mingw32/sys-root/mingw/lib/libgtk-win32-2.0.a(gtkmain.o):(.text+0x7c0): first defined here
collect2: ld returned 1 exit status

I'm using Fedora 16, and Installed these mingw32 packages:
mingw32-gcc-c++-4.6.1-3.fc16.i686
mingw32-gdk-pixbuf-2.24.0-1.fc16.noarch
mingw32-webkitgtk-1.6.1-1.fc16.noarch
mingw32-zlib-1.2.5-4.fc16.noarch
mingw32-pango-1.29.4-1.fc16.noarch
mingw32-pixman-static-0.22.2-1.fc16.noarch
mingw32-glib2-2.30.1-1.fc16.noarch
mingw32-libxml2-2.7.8-3.fc16.noarch
mingw32-w32api-3.17-1.fc16.noarch
mingw32-cairo-1.10.2-4.fc16.noarch
mingw32-libgpg-error-1.6-14.fc15.noarch
mingw32-runtime-3.18-4.fc16.noarch
mingw32-pixman-0.22.2-1.fc16.noarch
mingw32-libsoup-2.36.1-1.fc16.noarch
mingw32-cpp-4.6.1-3.fc16.i686
mingw32-termcap-1.3.1-9.fc15.noarch
mingw32-jasper-1.900.1-13.fc16.noarch
mingw32-cairo-static-1.10.2-4.fc16.noarch
mingw32-libxslt-1.1.26-4.fc16.noarch
mingw32-libxml2-static-2.7.8-3.fc16.noarch
mingw32-binutils-2.21-2.fc16.i686
mingw32-win-iconv-0.0.3-4.fc16.noarch
mingw32-libjpeg-turbo-1.1.1-5.fc16.noarch
mingw32-pango-static-1.29.4-1.fc16.noarch
mingw32-libgcrypt-1.4.4-5.fc15.noarch
mingw32-libsoup-static-2.36.1-1.fc16.noarch
mingw32-gcc-4.6.1-3.fc16.i686
mingw32-libffi-3.0.9-2.fc15.noarch
mingw32-expat-2.0.1-7.fc15.noarch
mingw32-glib2-static-2.30.1-1.fc16.noarch
mingw32-webkitgtk-static-1.6.1-1.fc16.noarch
mingw32-gettext-0.18.1.1-3.fc16.noarch
mingw32-atk-static-2.2.0-1.fc16.noarch
mingw32-filesystem-69-10.fc16.noarch
mingw32-atk-2.2.0-1.fc16.noarch
mingw32-sqlite-3.7.5-2.fc16.noarch
mingw32-pthreads-2.8.0-15.20110511cvs.fc16.noarch
mingw32-fontconfig-2.8.0-2.fc16.noarch
mingw32-gettext-static-0.18.1.1-3.fc16.noarch
mingw32-freetype-2.4.6-1.fc16.noarch
mingw32-gtk2-static-2.24.8-1.fc16.noarch
mingw32-libpng-1.4.8-2.fc16.noarch
mingw32-gtk2-2.24.8-1.fc16.noarch
mingw32-zlib-static-1.2.5-4.fc16.noarch


Tom
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux