title: How to solve json/json.h: No such file or directory?
body: <p>I've this problem:
  when I try to compile my program, doing <code>make</code> command, I see the following error:</p>
  <pre><code> fatal error: json/json.h: No such file or directory
     21 | #include &lt;json/json.h&gt;
  </code></pre>
  <p>I installed the json library throught the command <code>sudo apt-get install -y libjson-c-dev</code> and it was installed correctly. After that, I simply compiled the program adding <code>-ljson-c</code> to the makefile (I also tried with <code>-lcjson</code> and other names, none of them works). Here is my <code>makefile</code>:</p>
  <pre><code>ifndef MYDIR
      MYDIR=../../
  endif
  
  TARGET=$(shell basename $(shell ls -1 *.c | head -n 1) .c)
  TARGET2=$(shell basename $(shell ls -r -1 *.c | head -n 1) .c)
  
  
  CFLAGS  += -I$(MYDIR)/include   
  LDFLAGS += -L$(MYDIR)/lib 
  LIBS    += -litsStatic -lpthread -lm -lrt -lconfig -lgps -ljson-c
  
  all: $(TARGET)
  
  $(TARGET): $(TARGET).c
      $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS)
  
  clean:
      rm -f $(TARGET)
      rm -f $(TARGET)/.o
  .PHONY:clean
  
  all: $(TARGET2)
  
  $(TARGET2): $(TARGET2).c
      $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS)
  
  clean:
      rm -f $(TARGET2)
      rm -f $(TARGET2)/.o
  .PHONY:clean
  </code></pre>
  <p>Where is the problem? Thank you for your help!</p>