Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When compiling LLVM 3.3 under Cygwin, g++ does not find the appropriate header files, although they are surely present.

$ make --trace

g++ -I/cygdrive/c/llvm-3.3.src/include -I/cygdrive/c/llvm-3.3.src/lib/Support -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Woverloaded-virtual -Wcast-qual -Wall -W -Wno-unused-parameter -Wwrite-strings -c -MMD -MP -MF "/cygdrive/c/llvm-3.3.src/lib/Support/Release+Asserts/APFloat.d.tmp" -MT "/cygdrive/c/llvm-3.3.src/lib/Support/Release+Asserts/APFloat.o" -MT "/cygdrive/c/llvm-3.3.src/lib/Support/Release+Asserts/APFloat.d" APFloat.cpp -o /cygdrive/c/llvm-3.3.src/lib/Support/Release+Asserts/APFloat.o

fatal error: 'llvm/ADT/APFloat.h' file not found

What could be the problem?

share|improve this question

You are probably running g++ from your MinGW installation. Check if it's in the PATH with which g++.

share|improve this answer

You can't use cygdrive in -I for Mingw gcc. Need to use -IC:/llvm-3.3.src/include.

Details at:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.