NO

Author Topic: cc: default output file name  (Read 3214 times)

ivmai

  • Guest
cc: default output file name
« 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.

Romashka

  • Guest
Re: cc: default output file name
« Reply #1 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.

ivmai

  • Guest
Re: cc: default output file name
« Reply #2 on: June 20, 2009, 09:18:00 AM »
My report about "cc" program (not about IDE and projects).

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: cc: default output file name
« Reply #3 on: June 20, 2009, 05:07:30 PM »
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.
best regards
 Alex ;)

ivmai

  • Guest
Re: cc: default output file name
« Reply #4 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).