Hi, two days ago I asked if it was possible to create a librarie that could be used without having to inform the compiler of its use.
Apperently this is not the case.
I started to follow some tutorials to create a dynamically linked library but I always get the same error when trying to compile a source code with it:
gcc test.c -L. -l_string
test.c:1:24: fatal error: lib_string.h: No such file or directory
#include "lib_string.h"
gcc test.c -l_string
test.c:1:24: fatal error: lib_string.h: No such file or directory
#include "lib_string.h"
Here is a screen shot of all the commands that I've used:
low, medium and high .c are source codes for the functions that I want to put in my library.
mylib.h is the header that contains a prototype for every function.
test.c is a tiny script to see if the library works.