Error compiling C code that runs Julia code

My Julia folder is /home/nxf93431/julia-1.8.1/ and I write the following main.c file in C:

#include <julia.h>

int main(int argc, char *argv[]) {
  return 0;

Then I try to compile as follows:

gcc -o main -fPIC -I$/home/nxf93431/julia-1.8.1/include/julia -L$/home/nxf93431/julia-1.8.1/lib -Wl,-rpath,$/home/nxf93431/julia-1.8.1/lib main.c -ljulia

but unfortunately, I get a compilation error that says “fatal error: julia.h: No such file or directory”.
I do not understand why I get this error since I specify the path in my compilation line.

I think the ‘$’ characters are too much here: Either use


or the expansion of the ‘$HOME’ shell variable