From: Eugene Ageenko Newsgroups: comp.os.msdos.djgpp,gnu.gcc,gnu.gcc.help Subject: Re: GCC vs. CC. problem with macro. Help required! Date: Tue, 01 Jun 1999 19:49:33 +0300 Organization: University of Joensuu / Dept. of Computer Sci. Lines: 58 Message-ID: <37540F1D.CD76DF2D@cs.joensuu.fi> References: <3753FA47 DOT 81AD25F6 AT cs DOT joensuu DOT fi> NNTP-Posting-Host: cspc52.joensuu.fi Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.51 [en] (Win95; I) X-Accept-Language: ru To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > 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.