Ik tracht middels de terminal een library te maken en te gebruiken.
Dit is m'n directory structuur:
/temp
lib_mylib.a
lib_mylib.o
main.c
myLib.h
/temp2
main.c
So this command should work:
/temp/temp2$ gcc -I ../temp/ -c main.c -o main.o
But it says:
“fatal error: myLib.h: Bestand of map bestaat niet…”
Kan, wil, iemand mij vertellen wat ik hier fout, of onvoldoende doe?