I have recently installed Gtkmm in my Win7 machine, I am using NetBeans7.2.1 to 
compile this code:
#include <gtkmm/main.h>
#include <gtkmm.h>
int main (int argc, char *argv[])
{
  Gtk::Main kit(argc, argv);
  Gtk::Window helloworld;
  //Shows the window and returns when it is closed.
  Gtk::Main::run(helloworld);
  return 0;
}
which produces this error:
 
"Drive:/MinGW/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= 
.build-conf
make[1]: Entering directory `Drive:/Documents/NetBeansProjects/Welcome_1'
"Drive:/MinGW/bin/make"  -f nbproject/Makefile-Debug.mk 
dist/Debug/MinGW-Windows/welcome_1.exe
make[2]: Entering directory `Drive:/Documents/NetBeansProjects/Welcome_1'
mkdir -p build/Debug/MinGW-Windows
rm -f build/Debug/MinGW-Windows/welcome.o.d
g++.exe `pkg-config gtkmm-2.4 --cflags`    -c -g -MMD -MP -MF 
build/Debug/MinGW-Windows/welcome.o.d -o build/Debug/MinGW-Windows/welcome.o 
welcome.cc
mkdir -p dist/Debug/MinGW-Windows
g++.exe `pkg-config gtkmm-2.4 --cflags`     `pkg-config gtkmm-2.4 --libs` -o 
dist/Debug/MinGW-Windows/welcome_1  build/Debug/MinGW-Windows/welcome.o 
make[2]: Leaving directory `Drive:/Documents/NetBeansProjects/Welcome_1'
build/Debug/MinGW-Windows/welcome.o: In function `main':
D:\Documents\NetBeansProjects\Welcome_1/welcome.cc:53: undefined reference to 
`Gtk::Main::Main(int&, char**&, bool)'
D:\Documents\NetBeansProjects\Welcome_1/welcome.cc:55: undefined reference to 
`Gtk::Window::Window(Gtk::WindowType)'
D:\Documents\NetBeansProjects\Welcome_1/welcome.cc:57: undefined reference to 
`Gtk::Main::run(Gtk::Window&)'
D:\Documents\NetBeansProjects\Welcome_1/welcome.cc:55: undefined reference to 
`Gtk::Window::~Window()'
D:\Documents\NetBeansProjects\Welcome_1/welcome.cc:53: undefined reference to 
`Gtk::Main::~Main()'
D:\Documents\NetBeansProjects\Welcome_1/welcome.cc:55: undefined reference to 
`Gtk::Window::~Window()'
D:\Documents\NetBeansProjects\Welcome_1/welcome.cc:53: undefined reference to 
`Gtk::Main::~Main()'
build/Debug/MinGW-Windows/welcome.o: In function `_tcf_0':
Drive:/gtkmm/include/gtkmm-2.4/gtkmm/papersize.h:41: undefined reference to 
`Glib::ustring::~ustring()'
build/Debug/MinGW-Windows/welcome.o: In function `_tcf_1':
Drive:/gtkmm/include/gtkmm-2.4/gtkmm/papersize.h:42: undefined reference to 
`Glib::ustring::~ustring()'
build/Debug/MinGW-Windows/welcome.o: In function `_tcf_2':
Drive:/gtkmm/include/gtkmm-2.4/gtkmm/papersize.h:43: undefined reference to 
`Glib::ustring::~ustring()'
build/Debug/MinGW-Windows/welcome.o: In function `_tcf_3':
Drive:/gtkmm/include/gtkmm-2.4/gtkmm/papersize.h:44: undefined reference to 
`Glib::ustring::~ustring()'
build/Debug/MinGW-Windows/welcome.o: In function `_tcf_4':
Drive:/gtkmm/include/gtkmm-2.4/gtkmm/papersize.h:45: undefined reference to 
`Glib::ustring::~ustring()'
build/Debug/MinGW-Windows/welcome.o:Drive:/gtkmm/include/gtkmm-2.4/gtkmm/papersize.h:46:
 more undefined references to `Glib::ustring::~ustring()' follow
build/Debug/MinGW-Windows/welcome.o: In function 
`_static_initialization_and_destruction_0':
Drive:/gtkmm/include/gtkmm-2.4/gtkmm/papersize.h:41: undefined reference to 
`Glib::ustring::ustring(char const*)'
Drive:/gtkmm/include/gtkmm-2.4/gtkmm/papersize.h:42: undefined reference to 
`Glib::ustring::ustring(char const*)'
Drive:/gtkmm/include/gtkmm-2.4/gtkmm/papersize.h:43: undefined reference to 
`Glib::ustring::ustring(char const*)'
Drive:/gtkmm/include/gtkmm-2.4/gtkmm/papersize.h:44: undefined reference to 
`Glib::ustring::ustring(char const*)'
Drive:/gtkmm/include/gtkmm-2.4/gtkmm/papersize.h:45: undefined reference to 
`Glib::ustring::ustring(char const*)'
build/Debug/MinGW-Windows/welcome.o:Drive:/gtkmm/include/gtkmm-2.4/gtkmm/papersize.h:46:
 more undefined references to `Glib::ustring::ustring(char const*)' follow
collect2: ld returned 1 exit status


What is the problem? what can I do to resolve this issue?
_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list
  • [no subject] Doesnt Stop
    • Re: Krzysztof Kosiński

Reply via email to