gtkmm demo building

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

gtkmm demo building

Andrew Shwaika
Hello!
I'm trying to build gtkmm by myself.
All library DLLs have built successfully.
But I can't to link demo.exe:
 
g++ -g -O2 -mms-bitfields -Wall -o .libs/demo.exe demowindow.o main.o
textwidget.o example_appwindow.o example_buttonbox.o
example_change_display.o example_colorsel.o example_dialog.o
example_drawingarea.o example_images.o example_menus.o example_panes.o
example_pixbufs.o example_sizegroup.o example_stockbrowser.o
example_uimanager.o example_textview.o example_treeview_editable_cells.o
example_treeview_liststore.o example_treeview_treestore.o  
-L/usr/local/lib ../../pango/pangomm/.libs/libpangomm-1.4.dll.a
-L/usr/local/lib ../../atk/atkmm/.libs/libatkmm-1.6.dll.a
../../gdk/gdkmm/.libs/libgdkmm-2.4.dll.a
../../gtk/gtkmm/.libs/libgtkmm-2.4.dll.a
../../gdk/gdkmm/.libs/libgdkmm-2.4.dll.a
../../atk/atkmm/.libs/libatkmm-1.6.dll.a
../../pango/pangomm/.libs/libpangomm-1.4.dll.a
/usr/local/lib/libglibmm-2.4.dll.a /usr/local/lib/libsigc-2.0.dll.a
/usr/local/lib/libgtk-win32-2.0.dll.a
/usr/local/lib/libgdk-win32-2.0.dll.a /usr/local/lib/libatk-1.0.dll.a
/usr/local/lib/libgdk_pixbuf-2.0.dll.a
/usr/local/lib/libpangowin32-1.0.dll.a -lgdi32
/usr/local/lib/libpango-1.0.dll.a /usr/local/lib/libgobject-2.0.dll.a
/usr/local/lib/libgmodule-2.0.dll.a /usr/local/lib/libglib-2.0.dll.a
-lwsock32 /usr/local/lib/libintl.dll.a /usr/local/lib/libiconv.dll.a
-L/usr/local/lib
example_change_display.o: In function `ZN21Example_ChangeDisplayD2Ev':
D:/gtkmm-2.4.11/demos/gtk-demo/example_change_display.cc:184: variable
'VTT for Gtk::TreeViewColumn' can't be auto-imported. Please read the
documentation for ld's --enable-auto-import for details
...
<skipped>
...
D:/Local/include/glibmm-2.4/glibmm/refptr.h:(.text$_ZN3Gtk14TreeViewColumnC1INS_7StockIDEEERKN4Glib7ustringERKNS_15TreeModelColumnIT_EE[Gtk::TreeViewColumn::TreeViewColumn<Gtk::StockID>(Glib::ustring
const&, Gtk::TreeModelColumn<Gtk::StockID> const&)]+0xf5): variable
'vtable for Gtk::TreeViewColumn' can't be auto-imported. Please read the
documentation for ld's --enable-auto-import for details.
example_treeview_liststore.o: In function `ZN12CellItem_BugC1Ev':
D:/gtkmm-2.4.11/demos/gtk-demo/example_treeview_liststore.cc:64:
variable 'vtable for Gtk::TreeViewColumn' can't be auto-imported. Please
read the documentation for ld's --enable-auto-import for details.
D:/gtkmm-2.4.11/demos/gtk-demo/example_treeview_liststore.cc:64:
variable 'vtable for Gtk::TreeViewColumn' can't be auto-imported. Please
read the documentation for ld's --enable-auto-import for details.
collect2: ld returned 1 exit status
make: *** [demo.exe] Error 1

gtkmm v2.4.11

$ gcc -v
Reading specs from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as
--host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads
--disable-nls --enable-languages=c,c++,f77,ada,objc,java
--disable-win32-registry --disable-shared --enable-sjlj-exceptions
--enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm
--disable-libgcj-debug --enable-interpreter
--enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.2 (mingw-special)

$ ld --version
GNU ld version 2.15.94 20050118
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.

I have tried to put __declspec(dllexport/dllimport) to the
Gtk::TreeViewColumn class but it doesn't help.
The same error with gcc v3.4.4.

Any help will by appreciated
-Andrew



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Reply | Threaded
Open this post in threaded view
|

Re: gtkmm demo building

Greg Chicares
On 2005-06-08 09:55 AM, Andrew L. Shwaika wrote:
>
> I'm trying to build gtkmm by myself.
> All library DLLs have built successfully.
> But I can't to link demo.exe:
[...]
> D:/gtkmm-2.4.11/demos/gtk-demo/example_treeview_liststore.cc:64:
> variable 'vtable for Gtk::TreeViewColumn' can't be auto-imported. Please
> read the documentation for ld's --enable-auto-import for details.
> collect2: ld returned 1 exit status
> make: *** [demo.exe] Error 1

Probably did you read the ld manual, because you tried one of
the techniques it suggests:

> I have tried to put __declspec(dllexport/dllimport) to the
> Gtk::TreeViewColumn class but it doesn't help.

I'd guess that gave a different diagnostic message, which it
might help to copy here. I thought that specifying those
decorations would always work.

Have you tried the linker's runtime pseudo-relocations option?


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users