Pelles C forum

Pelles C => Bug reports => Topic started by: ivmai on June 19, 2009, 02:57:00 PM

Title: cc: default output file name
Post by: ivmai on June 19, 2009, 02:57:00 PM

Typically (for other compilers) if I compile folder/file.c then I get file.o file (not folder/file.o).
May be, it's just a feature of this compiler.
Title: Re: cc: default output file name
Post by: Romashka on June 19, 2009, 11:05:27 PM
If I understood you correctly - you should change Output directory when creating the project to the same directory where your source files are.
Title: Re: cc: default output file name
Post by: ivmai on June 20, 2009, 09:18:00 AM
My report about "cc" program (not about IDE and projects).
Title: Re: cc: default output file name
Post by: AlexN on June 20, 2009, 05:07:30 PM
Quote from: ivmai on June 20, 2009, 09:18:00 AM
My report about "cc" program (not about IDE and projects).

And there you have the options /Fe and /Fo to change the name of the output file.
Title: Re: cc: default output file name
Post by: ivmai on June 20, 2009, 07:56:37 PM
Every compiler has something like /Fe or /Fo. I mean that typically if a compiler is invoked w/o such an option it would produce file.o (not folder/file.o).

Has somebody says it's a feature of this compiler?

PS. Sometimes it's impossible to use /Fe or /Fo (eg., when multiple input file names or wildcards are specified).