How to configure mingw to search libs?

841 Views Asked by At

I'm trying to compile my program for windows, i'm using mingw

i686-w64-mingw32-gcc Pagina_inicial.c -o Pagina_inicial `pkg-config --libs --cflags gtk+-2.0 mysqlclient`

but only the --cflags was find, the --libs does ld return error.

/usr/bin/i686-w64-mingw32-ld: cannot find -lgtk-x11-2.0
/usr/bin/i686-w64-mingw32-ld: cannot find -lgdk-x11-2.0
/usr/bin/i686-w64-mingw32-ld: cannot find -lpangocairo-1.0
/usr/bin/i686-w64-mingw32-ld: cannot find -latk-1.0
/usr/bin/i686-w64-mingw32-ld: cannot find -lcairo
/usr/bin/i686-w64-mingw32-ld: cannot find -lgdk_pixbuf-2.0
/usr/bin/i686-w64-mingw32-ld: cannot find -lgio-2.0
/usr/bin/i686-w64-mingw32-ld: cannot find -lpangoft2-1.0
/usr/bin/i686-w64-mingw32-ld: cannot find -lpango-1.0
/usr/bin/i686-w64-mingw32-ld: cannot find -lgobject-2.0
/usr/bin/i686-w64-mingw32-ld: cannot find -lglib-2.0
/usr/bin/i686-w64-mingw32-ld: cannot find -lfontconfig
/usr/bin/i686-w64-mingw32-ld: cannot find -lfreetype
/usr/bin/i686-w64-mingw32-ld: cannot find -lmariadb
/usr/bin/i686-w64-mingw32-ld: cannot find -lz
/usr/bin/i686-w64-mingw32-ld: cannot find -ldl
/usr/bin/i686-w64-mingw32-ld: cannot find -lgnutls
collect2: error: ld returned 1 exit status

I already tryed put the paths manually but problably im using wrongs paths, someone can helpe me?

0

There are 0 best solutions below