Question

So, I'm trying to compile Ardour, on my 64-bit Mac (OS X 10.8.5), but it can't find some header files. The header files are located in /opt/local/include, which doesn't show up in gcc's list of search paths, as returned by gcc -x c++ -v -E /dev/null.

I've read How do I add a directory to C header include path?, and tried setting C_INCLUDE_PATH=/opt/local/include, but nothing's changed - gcc still doesn't list it as an include path. (I also tried CPP_INCLUDE_PATH, just in case - no dice.) I can't (reasonably) add a command line option to specifically include that directory, since the project uses a config script. Any ideas?

Was it helpful?

Solution

Typically for C++ it should be:

CPLUS_INCLUDE_PATH=/opt/local/include 
export CPLUS_INCLUDE_PATH

You can also set that in your .bash_profile for future use.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top