[Courses] Re : C Programming for Absolute Beginners, text book?

Gloria W strangest at comcast.net
Thu Feb 9 04:43:38 UTC 2012


On 02/08/2012 11:38 PM, Carla Schroder wrote:
>>> When you look in /etc/alternatives you see another cc>  gcc links,
>>> and how C89
>>> and C99 standards support are handled:
>>>
>>> $ ls -l /etc/alternatives | grep cc
>>> lrwxrwxrwx 1 root root  12 Jun  2  2011 cc ->  /usr/bin/gcc
>>> lrwxrwxrwx 1 root root  16 Jun  2  2011 c89 ->  /usr/bin/c89-gcc
>>> lrwxrwxrwx 1 root root  16 Jun  2  2011 c99 ->  /usr/bin/c99-gcc
>> I do not have these files in my system, using of gcc v4.6 and fedora16.
>> $ ll /etc/alternatives/ | grep cc
>> $ gcc --version
>> gcc (GCC) 4.6.2 20111027 (Red Hat 4.6.2-1)
>> Copyright (C) 2011 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions.  There is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>>
>> Is that means my gcc does not have the compatibility with c89 and c99?
>> Best,
>> Chao
>   I don't know, Chao, I'm running Debian so maybe Fedora packages it
> differently. Any Fedora users out there who can shed some light?
>
>   best,
> Carla
> _______________________________________________
> Courses mailing list
> Courses at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/courses
>
Here's what I've got (fedora 15):

[gloriajw at localhost alternatives]$ cd /usr/bin
[gloriajw at localhost bin]$ ls -l cc
lrwxrwxrwx 1 root root 3 Sep 29 18:51 cc -> gcc
[gloriajw at localhost bin]$ ls -l c89
-rwxr-xr-x 1 root root 224 Sep  8 05:26 c89
[gloriajw at localhost bin]$ ls -l c99
-rwxr-xr-x 1 root root 215 Sep  8 05:26 c99
[gloriajw at localhost bin]$ cc -v
Using built-in specs.
COLLECT_GCC=cc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.6.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info 
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap 
--enable-shared --enable-threads=posix --enable-checking=release 
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions 
--enable-gnu-unique-object --enable-linker-build-id 
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto 
--enable-plugin --enable-java-awt=gtk --disable-dssi 
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre 
--enable-libgcj-multifile --enable-java-maintainer-mode 
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar 
--disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic 
--with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.6.1 20110908 (Red Hat 4.6.1-9) (GCC)
[gloriajw at localhost bin]$



More information about the Courses mailing list