Re: Linux -> win32 cross-compile
- From: "J. Ali Harlow" <ali avrc city ac uk>
- To: gtk-list gnome org
- Subject: Re: Linux -> win32 cross-compile
- Date: Tue, 18 Jun 2002 07:17:40 +0100
On 2002.06.18 01:01 rhaarman ucdavis edu wrote:
[snip]
2. What commands do you use for compiling and linking? I use
gcc -c -I/usr/local/cross-tools/include/gtk-2.0 -I/usr/local/cross-
tools/lib/gtk-2.0/include -I/usr/local/cross-tools/include/atk-1.0 -
I/usr/local/cross-tools/include/pango-1.0 -I/usr/local/cross-
tools/include/glib-2.0 -I/usr/local/cross-tools/lib/glib-2.0/include
hello.c
for compiling, and
gcc -o hello.exe -I/usr/local/cross-tools/include/gtk-2.0 -
I/usr/local/cross-tools/lib/gtk-2.0/include -I/usr/local/cross-
tools/include/atk-1.0 -I/usr/local/cross-tools/include/pango-1.0 -
I/usr/local/cross-tools/include/glib-2.0
-I/usr/local/cross-tools/lib/glib-
2.0/include -L/usr/local/cross-tools/lib -lgtk-win32-2.0 -lgdk-win32-
2.0 -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 hello.o
for linking (both with environments set up so that the cross-tools will
be
used instead of the Linux tools). The first command works fine, the
second
gives lots of errors like
hello.o(.text+0x199):hello.c: undefined reference to `gtk_main'
I'm not at work yet, so I can't give you my exact command line, but
that looks like the standard problem of having object/libraries in
the wrong order. Try it with hello.o before all the -lxxx flags.
If that doesn't work, shout and I'll send you my make output.
--
Ali Harlow Email: ali avrc city ac uk
Research programmer Tel: (020) 7040 4348
Applied Vision Research Centre Intl: +44 20 7040 4348
City University Fax: (020) 7040 5515
London Intl: +44 20 7040 5515
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]