I believe this is not a duplicate question, I have seen all questions/answers before I post this question. I think I have a different situation here.
I use Ubuntu 12.04
You should compile with source file appearing before the libraries as gcc hello.c $(pkg-config --cflags --libs gtk+-3.0) -o hello
, the reason being the behavior of linker i.e it does not link the libraries unless the symbols of that library is seen prior in compilation.
Hope this helps!
You could also include the gtk library directly into your project: