I am trying to setup my headers for mainly C development but I will also need to link in some C++ code as well. It's been a while and I totally made a mess of things;
I will be using some of the clang tools I wrote a simple test program that runs into linker errors.
returns this error:
In file included from test.cpp:4:
I am using tcsh as a shell; .cshrc env variables look like this so far
I know that I should be able to add my lib and include directories to my .cshrc file so I do not have to manually pass all those arguments to clang.
How do I properly setup my header search path?
I will be using some of the clang tools I wrote a simple test program that runs into linker errors.
Code:
clang++ -I/usr/local/llvm40/include/clang test.cpp
returns this error:
In file included from test.cpp:4:
Code:
/usr/local/llvm40/include/clang-c/Index.h:21:10: fatal error:
'clang-c/Platform.h' file not found
#include "clang-c/Platform.h"
^~~~~~~~~~~~~~~~~~~~
1 error generated
I am using tcsh as a shell; .cshrc env variables look like this so far
Code:
setenv LDFLAGS "-L/usr/local/lib"
setenv CPPFLAGS "-I/usr/local/include -I/usr/local/llvm40/include"
setenv CC clang
setenv CXX clang++
I know that I should be able to add my lib and include directories to my .cshrc file so I do not have to manually pass all those arguments to clang.
How do I properly setup my header search path?