i'm using wingtk. in the makefile, i've got the cflags line as:
CFLAGS=-s -mwindows -mno-cygwin -fnative-struct -mno-cygwin -fnative-struct -IC:\WINGTK\INCLUDE\ -IC:\wingtk\INCLUDE\G__~1 -IC:\WINGTK\INCLUDE\ -LC:\WINGTK\LIB\ -BC:\winGTK\BIN\ -IC:\WINGTK\INCLUDE\GDK -DHAVE_CONFIG_H
i need to add these libs so that my 'program can find it at build time': -lgtk-win32-2.0 -lgdk-win32-2.0 -lgthread-2.0 -lgdi32 -lole32 -luuid -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv. where in the line would i put it? does it even come in the cflags part or somewhere else? i added it after the '-fnative-struct' and other include dirs just before '-DHAVE_CONFIG_H'.
as of now, the line is (stripped down):
CFLAGS=-s -mwindows -mno-cygwin -fnative-struct -mno-cygwin -fnative-struct -lpango-1.0 -lintl -liconv -IC:\WINGTK\INCLUDE\ -IC:\WINGTK\INCLUDE\ -LC:\WINGTK\LIB\ -BC:\winGTK\BIN\ -IC:\WINGTK\INCLUDE\GDK -IC:\WINGTK\INCLUDE\gtk-2.0 -IC:\WINGTK\INCLUDE\gtkdeps-2.0 -LC:\WINGTK\LIB\glib-2.0\include -LC:\WINGTK\LIB\gtk-2.0\include -DHAVE_CONFIG_H
i see messages like
Code:
gcc: -lpango-1.0: linker input file unused since linking not done
gcc: -lintl: linker input file unused since linking not done
gcc: -liconv: linker input file unused since linking not done
and the error is:
'C:\WINGTK\BIN\ld.exe: cannot open -lpango-1.0: No such file or directory'
and 'pango-1.0.lib' is in C:\WINGTK\LIB\.
syntax is wrong? most of the makefile stuff on the net is about how they work which i sorta know. was looking for some captured output from a 2.4 kernel recompile for hints on this.