Hello everyone! I'm back with more questions. Right now I'm using netbeans IDE, with manually connected MinGW. I'm trying to get a simple GTKmm program to compile:
but I get compiler errors coming out (yes I have checked that the compiler works):Code:#include <gtkmm.h> using namespace std; int main(int argc, char *argv[]) { Gtk::Main kit(argc, argv); Gtk::Window window; Gtk::Main::run(window); return 0; }
I have added the GTK+/GTKmm include directories as much as possible in project options, this is the final include additional path variable:Code:"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf make[1]: Entering directory `/c/Users/Sonik/Documents/NetBeansProjects/test_compiler' "/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/test_compiler.exe make[2]: Entering directory `/c/Users/Sonik/Documents/NetBeansProjects/test_compiler' mkdir -p build/Debug/MinGW-Windows rm -f build/Debug/MinGW-Windows/main.o.d g++.exe -c -g -I/C/GTK -I/C/GTK/include -I/C/GTK/include/gtkmm-2.4 -I/C/GTK/include/gtkmm-2.4/gtkmm -I/C/GTK/include/gtkmm-2.4/gtkmm/private -I/C/GTK/include/atkmm-1.6 -I/C/GTK/include/gdkmm-2.4 -I/C/GTK/include/gideon -I/C/GTK/include/glibmm-2.4 -I/C/GTK/include/libglademm-2.4 -I/C/GTK/include/libxml++-2.6 -I/C/GTK/include/pangomm-1.4 -I/C/GTK/include/sigc++-2.0 -I/C/GTK/include/atkmm-1.6/atkmm -I/C/GTK/include/gdkmm-2.4/gdkmm -I/C/GTK/include/glibmm-2.4/glibmm -I/C/GTK/include/glibmm-2.4/glibmm_generate_extra_defs -I/C/GTK/include/libglademm-2.4/libglademm -I/C/GTK/include/libxml++-2.6/libxml++ -I/C/GTK/include/pangomm-1.4/pangomm -I/C/GTK/include/sigc++-2.0/sigc++ -MMD -MP -MF build/Debug/MinGW-Windows/main.o.d -o build/Debug/MinGW-Windows/main.o main.cpp from c:/GTK/include/glibmm-2.4/glibmm.h:27, from c:/GTK/include/gtkmm-2.4/gtkmm.h:29, from main.cpp:8: In file included from c:/GTK/include/glibmm-2.4/glibmm/arrayhandle.h:24:0, c:/GTK/include/glibmm-2.4/glibmm/containerhandle_shared.h:23:26: fatal error: glibmmconfig.h: No such file or directory compilation terminated. make[2]: *** [build/Debug/MinGW-Windows/main.o] Error 1 make[1]: *** [.build-conf] Error 2 make: *** [.build-impl] Error 2 make[2]: Leaving directory `/c/Users/Sonik/Documents/NetBeansProjects/test_compiler' make[1]: Leaving directory `/c/Users/Sonik/Documents/NetBeansProjects/test_compiler' BUILD FAILED (exit value 2, total time: 2s)
can anyone please explain, why is Netbeans not detecting several GTK+ headers, and how could I fix it?Code:C:/GTK;C:/GTK/include;C:/GTK/include/gtkmm-2.4;C:/GTK/include/gtkmm-2.4/gtkmm;C:/GTK/include/gtkmm-2.4/gtkmm/private;C:/GTK/include/atkmm-1.6;C:/GTK/include/gdkmm-2.4;C:/GTK/include/gideon;C:/GTK/include/glibmm-2.4;C:/GTK/include/libglademm-2.4;C:/GTK/include/libxml++-2.6;C:/GTK/include/pangomm-1.4;C:/GTK/include/sigc++-2.0;C:/GTK/include/atkmm-1.6/atkmm;C:/GTK/include/gdkmm-2.4/gdkmm;C:/GTK/include/glibmm-2.4/glibmm;C:/GTK/include/glibmm-2.4/glibmm_generate_extra_defs;C:/GTK/include/libglademm-2.4/libglademm;C:/GTK/include/libxml++-2.6/libxml++;C:/GTK/include/pangomm-1.4/pangomm;C:/GTK/include/sigc++-2.0/sigc++



LinkBack URL
About LinkBacks


