auto-import error (was: Re: crosscompile Linux-Windows)



Am Freitag, den 25.03.2005, 11:56 +0100 schrieb Cedric Gustin:
> i586-mingw32msvc-g++ *.o -o file.exe `pkg-config --libs gtkmm-2.4`

that worked fine, of course not with pkg-config, which shows the linux
paths... thanks
I compiled with that a simple Hello World programm. But when I run it
over my bigger Programm:

i586-mingw32msvc-g++ -g -Wall `pkg-config gtkmm-2.4 --cflags` outputWindow.o getter.o mpglengthtest.o asflengthtest.o dllocxlengthtest.o sndlengthtest.o exelengthtest.o movlengthtest.o mp3lengthtest.o midlengthtest.o avilengthtest.o wavlengthtest.o tiflengthtest.o jpglengthtest.o bmplengthtest.o giflengthtest.o lengthtest.o -o apdet.exe -L/home/ben/src/gtklib/ -lgtkmm-2.4 -latkmm-1.6 -lgtk-win32-2.0 -lpangomm-1.4 -lglibmm-2.4 -lsigc-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 
outputWindow.o: In function `_ZN12OutputWindowC2Ev':
/home/ben/src/own/apdet/outputWindow.cc:33: variable 'vtable for Gtk::TreeViewColumn' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
/home/ben/src/own/apdet/outputWindow.cc:33: variable 'vtable for Gtk::TreeViewColumn' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
Info: resolving Gtk::Stock::CANCEL     by linking to __imp___ZN3Gtk5Stock6CANCELE (auto-import)
Info: resolving Gtk::Stock::OPEN     by linking to __imp___ZN3Gtk5Stock4OPENE (auto-import)
Info: resolving VTT for Gtk::TreeViewColumn by linking to __imp___ZTTN3Gtk14TreeViewColumnE (auto-import)
Info: resolving vtable for Gtk::TreeViewColumnby linking to __imp___ZTVN3Gtk14TreeViewColumnE (auto-import)
collect2: ld returned 1 exit status
make: *** [all] Fehler 1

I found in the archive that it helps to use the older gcc 3.2.3 but that
produced a bit more errors. I tried to compile it direct under Windows
(with devcpp), where it produces the same error.
Because of the posting, being a Year old, I hope, there is a newer
solution for that...

Bye, Ben




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