Re: cc/gcc programming - where are the includes?

2018-12-19 Thread Christoph Kukulies
I was refering to compiling a C program in a terminal shell using a makefile or command line. Indeed it seems to work without CPATH set. I had a type in my #include line :-( Had some strange character in that line from copy/paste. Sorry for that. All fine now. — Christoph > Am 19.12.2018 um

Re: cc/gcc programming - where are the includes?

2018-12-19 Thread Chris Jones
Hi, On 19/12/2018 11:21 am, Christoph Kukulies wrote: Thanks. I have Xcode installed and I’m developing an App presently. I need to run a small server on my mac as well and I thought the best would be to run it in a terminal and compile it with a C-compiler of choice. Need not to be gcc. Just

Re: cc/gcc programming - where are the includes?

2018-12-19 Thread Christoph Kukulies
Thanks. I have Xcode installed and I’m developing an App presently. I need to run a small server on my mac as well and I thought the best would be to run it in a terminal and compile it with a C-compiler of choice. Need not to be gcc. Just the default one. And thanks Ruben for the tip using the

Re: cc/gcc programming - where are the includes?

2018-12-19 Thread Chris Jones
Hi, First things first. Do you really need GCC ? The primary compilers in macOS are now based on clang, and I recommend you use these instead of GCC for a number of reasons. To have access to these you need to make sure you have Xcode etc. installed. see https://guide.macports.org/chunked/in

Re: cc/gcc programming - where are the includes?

2018-12-19 Thread Ruben Di Battista
If you are using the compiler by hand in the command line, you can set the CPATH env variable to point to the include directory... (/opt/local/include) Even if the system headers should be included by default if I'm not mistaken. On Wed, 19 Dec 2018, 09:33 Christoph Kukulies Does it require a

cc/gcc programming - where are the includes?

2018-12-19 Thread Christoph Kukulies
Does it require a special package to be installed when one wants to develop under cc or gcc in macOS? I was writing a little C program starting with #include and the compiler doesn’t find anything (what I would be normally under /usr/include — Christoph