--cflags and --libs options are not recognized by g++

I did the steps in the link bellow and it didn’t work
https://wiki.gnome.org/Projects/gtkmm/MSWindows

I get the message error:

g++ -std=c++11 main.cpp $(pkg-config --cflags --libs gtkmm-3.0 | sed ‘s/ -I/ -isystem /g’)
g++: error: unrecognized command-line option ‘–cflags’
g++: error: unrecognized command-line option ‘–libs’
sed: -e expression #1, char 19: unknown option to `s’

g++ -std=c++11 main.cpp $(pkg-config --cflags gtkmm-3.0) $(pkg-config --libs gtkmm-3.0)
g++: error: unrecognized command-line option ‘–cflags’
g++: error: unrecognized command-line option ‘–libs’

The --cflags and --libs options are meant for the pkg-config command. But it looks like they end up getting passed to g++. You probably don’t have pkg-config installed.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.