danielpinto8zz6/c-cpp-project-generator

Not found headers

Closed this issue · 4 comments

I use this project to create a C project to write GTK programs. The header is #inclued <gtk/gtk.h>, but When I try to make run got a error not found this header file. This is due to the hermit rule of makefile,so I added

%.o:%.c
   $(CC) -c $(CFLAGS) $^ -o $@ $(LIBRARIES)

Problem solving.
I hope this template can be richer to avoid such mistakes

Did you included gtk into libraries?

i add a header file in "include" path and use #include in main.c. then i build the project but it can't find the header file
Capture

#include "add.h" >> #include "utility/add.h"

Did you included gtk into libraries?

No, My GTK library is in the system.