Re: compiling gpc on Mac OS 10.10.5 Yosemite

Schneider <[email protected]> Thu, 19 Nov 2015 17:59:35 -0500
Newsgroups gmane.comp.compilers.gpc
Message-ID <[email protected]>
Peter::

> Could you post the output of
> gcc -v
> and check whether you can build a basic helloworld.c on this machine?

===== % uname -mprsv ===
Darwin 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep  1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64 i386
===== % which gcc ======
/usr/bin/gcc
===== % gcc -v =========
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
===== % hello.c ========
//C hello world example
#include <stdio.h>
 
int main()
{
  printf("Hello happy world\n");
  return 0;
}
===== % gcc hello.c ====
===== % run a.out: =====
Hello happy world
======================

Thanks!

Tom

  Thomas D. Schneider, Ph.D.
  Senior Investigator
  National Institutes of Health
  National Cancer Institute
  Center for Cancer Research
  Gene Regulation and Chromosome Biology Laboratory
  Molecular Information Theory Group
  Frederick, Maryland  21702-1201
  https://schneider.ncifcrf.gov (current link)
  https://alum.mit.edu/www/toms (permanent link)

_______________________________________________
Gpc mailing list
[email protected]
https://www.g-n-u.de/mailman/listinfo/gpc