Mail Archives: djgpp/1999/06/01/21:40:18
> ea> I have teh following problem to compile my programs using "cc", when
> ea> programs compiled perfectly with "gcc".
>
> What is "cc"... that is, where did it come from? You don't give any
> information about your system, what version of GCC you're using, etc.
> The newsgroups you've chosen suggest you're running on a DOS platform.
Sorry, if I have choosen a wrong newsgroup.
the situation is that one of our developers is working on Alpha DEC
station and uses boundled C compiler. I will ask him to provide an
information about the exact compiler in use, since I now see that cc
is a macro.
He has problem to compile our part of the software, and his
administrator is refusing to install gcc, claiming it is difficult. I
would also appreciate some short info about the gcc distribution and
installation advices.
We have tried to check the problmes our college expirienced with the
software and tried our local cc.
Here is the information which is available for "man cc" command on our
system where I have tested the test-code.
NAME
cc - C compiler
SYNOPSIS
/usr/ucb/cc [ options ]
AVAILABILITY
SUNWscpu
DESCRIPTION
/usr/ucb/cc is the interface to the BSD Compatibility Pack-
age C compiler. It is a script that looks for the link
/usr/ccs/bin/ucbcc to the C compiler. /usr/ccs/bin/ucbcc is
available only with the SPROcc package, whose default loca-
tion is /opt/SUNWspro. /usr/ucb/cc is identical to
/usr/ccs/bin/ucbcc, except that BSD headers are used and BSD
libraries are linked before base libraries. The
/opt/SUNWspro/man/man1/acc.1 man page is available only with
the SPROcc package.
I have asked our college to provide similar informtion.
> Quite often, "cc" is a pre-ANSI standard compiler; one that conforms to
> the K&R version 1 definition of C and the C preprocessor. Sometimes,
> too, "cc" is an alias that starts GCC in -traditional mode, where many
> of the enhancements blessed by the standard aren't recognized.
>
> Token pasting in the preprocessor (##) didn't exist in those versions;
> it was introduced in the 1989 ANSI C standard (later adopted by ISO as
> an international standard in 1990).
It seams so. What can we do about it?
Thank you, Eugene.
- Raw text -