I'm trying to run a gtkmm program in windows 10, I get errors when I compile even though I followed exactly the steps provided by the link attached below.
I installed MSYS2, I run all the commands and installed all the required packages using the pacman command (I followed this).
An example of a program:
#include <gtkmm.h>
int main(int argc, char *argv[])
{
auto app =
Gtk::Application::create(argc, argv,
"org.gtkmm.examples.base");
Gtk::Window window;
window.set_default_size(200, 200);
return app->run(window);
}
Error messages when executing with the command line (found here):
g++ simple.cc -o simple `pkg-config gtkmm-3.0 --cflags --libs`
I get these errors:
C:\Users\sofiane\Desktop>g++ simple.cc -o simple `pkg-config gtkmm-3.0 --cflags --libs`
g++: error: `pkg-config: No such file or directory
g++: error: gtkmm-3.0: No such file or directory
g++: error: unrecognized command line option '--cflags'
g++: error: unrecognized command line option '--libs`'