if i try and compile the tutorial code for GTK3 with the command
gcc simple.c -o simple 'pkg-config --libs --cflags gtk+-3.0'
it gives off the error
gcc: error: pkg-config --libs --cflag gtk+-3.0: No such file or directory
However if i run the command
pkg-config --libs --cflag gtk+-3.0 > makefile
and then edit the makefile such that the output of the above command is after
gcc simple.c -o simple
then it compiles with no problems at all. What gives?