Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Stupid 'cc' question (hello.c doesn't work)
@ 1995-03-23  5:46 Gyula Szokoly
  1995-03-23 16:36 ` Charles M Richmond
  0 siblings, 1 reply; 2+ messages in thread
From: Gyula Szokoly @ 1995-03-23  5:46 UTC (permalink / raw)


Hi,

  I hit an interesting problem with the standard 'cc' compiler (probably
linker, not the compiler). I have the standard 'hello.c' program. I try
to compile it the following way:

cc -o hello.e hello.c

  It fails (under OSF/1 v3.0b). Could somebody tell me how to tell the
compiler/linker to do what I want? Yes, I know, it will compile to
hello, but I have to compile to hello.e. Is there any way to set
some enviroment variable to disable this feature? Even a compiler
flag is out of question. Adding a compiler flag would mean editing
hundreds of files. Which I'm not willing to do...
  At a lower priority: can somebody explain who did it and why? I see
no point in this (clearly) added feature.

Thanks,
  Gyula
-- 
Gyula P. Szokoly (szgyula@skysrv.pha.jhu.edu) -------------------------------\
|  When I am weaker than you, I ask you for freedom because that is according|
|to your principles; when I am  stronger than  you, I take away  your freedom|
|because that is according to my principles.                 -- Frank Herbert|


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Stupid 'cc' question (hello.c doesn't work)
  1995-03-23  5:46 Stupid 'cc' question (hello.c doesn't work) Gyula Szokoly
@ 1995-03-23 16:36 ` Charles M Richmond
  0 siblings, 0 replies; 2+ messages in thread
From: Charles M Richmond @ 1995-03-23 16:36 UTC (permalink / raw)


szgyula@hoplite.pha.jhu.edu (Gyula Szokoly) writes:

>cc -o hello.e hello.c

>  It fails (under OSF/1 v3.0b). Could somebody tell me how to tell the
>compiler/linker to do what I want? Yes, I know, it will compile to
>hello, but I have to compile to hello.e. Is there any way to set
>some enviroment variable to disable this feature? Even a compiler
>flag is out of question. Adding a compiler flag would mean editing
>hundreds of files. Which I'm not willing to do...
>  At a lower priority: can somebody explain who did it and why? I see
>no point in this (clearly) added feature.

It fails becasue .e is a valid source extension.

However I have filed a QAR since ... well you can see for yourself:

cc -o test.e test.c
cc: Error: -o test.e resembles the name of a source file, disallowed
cp test.c test.e
cc test.e
cc: Error: can't find or exec: /bsd43/usr/bin/efl


Note that .e was not allowed on Ultrix also.

Charlie
-- 
*****************************************************************************
*  Charles Richmond 	Integrated International Systems Corporation        *
*  cmr@asoko.iisc.com	cmr@world.std.com				    *
*  Specializing in UNIX, X, Image Processing, and Communications.           *


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-03-23 16:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-03-23  5:46 Stupid 'cc' question (hello.c doesn't work) Gyula Szokoly
1995-03-23 16:36 ` Charles M Richmond

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox