cc/gcc programming - where are the includes?

Ruben Di Battista rubendibattista at gmail.com
Wed Dec 19 10:38:48 UTC 2018


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 <kuku at kukulies.org wrote:

> 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 <sys/types.h>
>
> and the compiler doesn’t find anything (what I would be normally under
> /usr/include
>
>> Christoph
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20181219/6401150f/attachment.html>


More information about the macports-users mailing list