Hello daniweb members,
How can I use gtkmm with MinGW (g++) without MSYS?
Here is the story of my problem:
I installed MinGW offline with all required packages (full install).
I installed Apache Server and I copied all .tar.gz files and I created a website called sourceforge.org [localhost] and I installed automatically MinGW on Windows XP.
After, I set the PATH variables.
After, I installed gtkmm for MinGW (g++).
I tried to compile a simple window with gtkmm + MinGW, but it does not work.
I use this command line:
g++ simple.cc -o simple `pkg-config gtkmm-2.4 --cflags --libs`
After, I installed MSYS and I can compile simple.cc with MSYS, using this command line:
g++ simple.cc -o simple `pkg-config gtkmm-2.4 --cflags --libs`
My problem:
I want to compile simple.cc without MSYS. I want compile my simple.cc with cmd.exe - It's possbile? If, yes. How?
Thank you for reading my message.
Any help is appreciated.
Recommended Answers
Jump to PostJust replace `pkg-config gtkmm-2.4 --cflags --libs` with its output manually.
Jump to PostJust run the command "pkg-config gtkmm-2.4 --cflags --libs" yourself. It will generate an output such as this:
-D_REENTRANT -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/giomm-2.4 -I/usr/lib/giomm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/lib/pangomm-1.4/include -I/usr/include/gtk-2.0 -I/usr/include/gtk-unix-print-2.0 -I/usr/include/atkmm-1.6 -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -lgtkmm-2.4 -latkmm-1.6 -lgdkmm-2.4 -lgiomm-2.4 -lpangomm-1.4 -lgtk-x11-2.0 …
All 5 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.