Re: For Win32 developers, only?



Add to your linker options the following line: ( This is one line at once!!!! )

  -Wl,--enable-runtime-pseudo-reloc

BR
Vinzenz 'evilissimo' Feenstra

Jamiil schrieb:
I did as you suggested, but I am back at the 'info' problem, which was the begining of this thread.
What is the meaning of this compiler message?
Info: resolving Gtk::Stock::CLOSE by linking to __imp___ZN3Gtk5Stock5CLOSEE (auto-import) Info: resolving Gtk::Stock::HELP by linking to __imp___ZN3Gtk5Stock4HELPE (auto-import)

Why is it that my buttons don't display it corresponding Gtk::Sotock picture?
Is this a bug in the Win32 version of Gtkmm?

TIA


Vinzenz 'evilissimo' Feenstra escribió:

Hey,

You should try Gtk::Stock::   instead of Gtk::StockID::
and you should write Gtk::manage()
;)
BR
Vinzenz 'evilissimo' Feenstra

Jamiil schrieb:

Can anyone tell me what is it that I am doing wrong?
Is this a bug in GtkmmWin32 bug?

TIA
class Jaime : public Gtk::Window{
protected:
Gtk::Button* btnQuit;
Gtk::Button* btnHelp;

......
publc:
Jaime();
virtual ~Jaime();
......
};
Jaime::Jaime(){
this->vBox = manage(new Gtk::VBox());
this->btnQuit = namage(new Gtk::Button(Gtk::StockID::CLOSE));
this->btnHelp = manage(new Gtk::Button(Gtk::StockID::HELP));
.................
this->set_title("Jaime");
this->set_border_width(0);
this->set_size_request(600, 400);
..................
}

This is a snip of what my code looks like, and this is the error I am getting:
Compiler: Default compiler
Building Makefile: "C:\Jamiil\dev\c++\gtkmm\Makefile.win"
Executing make...
make.exe -f "C:\Jamiil\dev\c++\gtkmm\Makefile.win" all
g++.exe -D__DEBUG__ -c jaime.cpp -o jaime.o -I"C:/GnuWin32/INCLUDE" -I"C:/GnuWin32/INCLUDE/GTK-2.0" -I"C:/GnuWin32/INCLUDE/GLIB-2.0" -I"C:/GnuWin32/INCLUDE/PANGO-1.0" -I"C:/GnuWin32/INCLUDE/CAIRO" -I"C:/GnuWin32/INCLUDE/ATK-1.0" -I"C:/GnuWin32/INCLUDE/GTKGLEXT-1.0" -I"C:/GnuWin32/LIB/GTK-2.0/INCLUDE" -I"C:/GnuWin32/LIB/GLIB-2.0/INCLUDE" -I"C:/GnuWin32/LIB/GTKGLEXT-1.0/INCLUDE" -I"C:/GnuWin32/INCLUDE/LIBGLADE-2.0" -I"C:/GnuWin32/INCLUDE/LIBXML2" -IC:/GnuWin32/include/gtkmm-2.4 -IC:/GnuWin32/lib/gtkmm-2.4/include -IC:/GnuWin32/include/glibmm-2.4 -IC:/GnuWin32/lib/glibmm-2.4/include -IC:/GnuWin32/include/gdkmm-2.4 -IC:/GnuWin32/lib/gdkmm-2.4/include -IC:/GnuWin32/include/pangomm-1.4 -IC:/GnuWin32/include/atkmm-1.6 -IC:/GnuWin32/include/gtk-2.0 -IC:/GnuWin32/include/sigc++-2.0 -IC:/GnuWin32/lib/sigc++-2.0/include -IC:/GnuWin32/include/glib-2.0 -IC:/GnuWin32/lib/glib-2.0/include -IC:/GnuWin32/lib/gtk-2.0/include -IC:/GnuWin32/include/pango-1.0 -IC:/GnuWin32/include/atk-1.0 -fno-access-control -fexceptions -fverbose-asm -pg -g3

jaime.cpp: In member function `void jme::Jaime::Init()':
jaime.cpp:29: error: `CLOSE' is not a member of `Gtk::StockID'
jaime.cpp:29: error: `namage' undeclared (first use this function)
jaime.cpp:29: error: (Each undeclared identifier is reported only once for each function it appears in.)
jaime.cpp:30: error: `HELP' is not a member of `Gtk::StockID'
jaime.cpp:30: error: `manage' undeclared (first use this function)

make.exe: *** [jaime.o] Error 1

Execution terminated
=======================


Should you need more information, please don't hesitate to ask for it.









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