This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: dependencies for sources in sub dirs.


Hi Tobias,

Try this experiment:

mkdir src
vi src/Foo.c
(put in something simple:  int foo() { return 3; } )
gcc -c src/Foo.c

Does the Foo.o end up in your current working directory, or in src/Foo.o?

HTH,
--Eljay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]