On 12/8/2010 1:28 PM, ali hagigat wrote:
gcc a1.c a2.c a3.c -o a4.o
What is the search path procedure of GCC to find a1.c, a2.c and a3.c?
There is no search path hierarchy for source files. The source files are
specified either absolute (starting with a / on at least UNIX/Linux
platforms) or relative to the current working directory. If GCC can't
find the source file, it will complain and obviously abort the
compilation. GCC tries to open the file just like they are specified on
the command line.
Best regards,
Andi