title: Manjaro Linux cannot open source file "gtkmm.h"
body: <p>I have been trying to set up my coding environment for GUI development in c++ recently, with little success.  I use Manjaro Linux with Visual Studio Code, but for some reason, I always seem to get include errors when including files that I <strong>know</strong> are there.</p>
  <p>Most recently, I tried to set up gtkmm-4.0 by installing the package and the documentation.  I double checked in <code>/usr/include/</code> to ensure the packages were all present, but I still am getting include errors:
  <code>cannot open source file &quot;gtkmm.h&quot;</code> and
  <code>gtkmm.h:No such file or directory</code></p>
  <p>At this point, all the code I have is:</p>
  <pre><code>#include &lt;gtkmm.h&gt;
  #include &lt;iostream&gt;
  
  int main(int argc, char* argv[]){
  
      return 0;
  }
  </code></pre>
  <p>Makefile:</p>
  <pre><code>exec = game.out
  sources = $(wildcard src/*.cpp)
  objects = $(sources:.cpp=.o)
  flags = -g $(shell pkg-config gtkmm-4.0 --cflags)
  libs = $(shell pkg-config gtkmm-4.0 --libs)
  
  
  $(exec): $(objects)
      g++ $(objects) $(flags) -o $(exec) $(libs)
  
  %.o: %.cpp include/%.h
      g++ -c $(flags) $&lt; -o $@
  
  install:
      make
      cp ./game.out /usr/local/bin/game
  
  clean:
      -rm *.out 
      -rm *.o
      -rm src/*.o
  </code></pre>
  <p>I have scoured the internet for answers, but everything I found was either for a different os/environment or just didn't</p>
  <p>@Galik and @John helped me solve this!</p>
  <p>What I had to do was use <code>g++ src/main.cpp -o main $(pkg-config gtkmm-4.0 --cflags --libs)</code> to compile my code, then run the executable.</p>
  <p>Thank you both for your help and guidance!!</p>