I have a directory called "aos" in which i have the results of the make, namely .o file and .a file.
My test case file in a directory called "test1" which is under the "aos" directory.
I am in the test1 directory which has a file called main.c (this is the file I want to execute). I tried compiling the file by giving the command
gcc -Wall -pedantic -I ../gtthreads.c -o main main.c ../gtthreads.a But I get these errors:
../gtthreads.c is not a directory ../gtthreads.a is not a directory What am i doing wrong here? How do I refer to the .a file and .c files which are in "aos" directory?