Why do Makefile commands work in the terminal directly but not with the 'make' command?
I'm struggling to compile a gtk application written in C. The compilation commands only work if directly run through the command line, whereas the same commands do not work if put into a Makefile and tried to compile with 'make' command. Compile commands all: cc $( pkg-config --cflags gtk4 ) $( pkg-config --libs gtk4 ) $(pkg-config --cflags --libs glib-2.0) $(pkg-config --cflags --libs gobject-2.0) -o dictRead src/main.c Error message from 'make' clang -o dictRead src/main.c In file included from src/main.c:9: In file included from /usr/include/gtk/gtk.h:29: In file included from /usr/include/
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.