Sublime Forum

How to set up Sublime Text to find my C header files?

#1

I compile my C program like so:

gcc $( pkg-config --cflags gtk4 ) $(pkg-config --cflags libpq) $( pkg-config --cflags webkitgtk-6.0 ) -o coeus coeus.h coeus.c $( pkg-config --libs webkitgtk-6.0 ) $( pkg-config --libs gtk4 ) $( pkg-config --libs libpq) -lcurl -w -lpthread -g

Where and how, in Sublime, do I configure my headers as above?

0 Likes

#2

You can either create a custom build system for your command (Tools > Build System > New Build System…), see https://www.sublimetext.com/docs/build_systems.html. Though I would suggest using a tool like make instead.

0 Likes