0

I've built and install OpenEXR library to usr/local. However, when running g++ compiler on my header files that has

#include <ImfRgbaFile.h>
#include <ImfChannelList.h>
#include <ImfHeader.h>
#include <ImfOutputFile.h>
#include <ImfInputFile.h>
#include <ImfStandardAttributes.h>
#include <ImfArray.h>

These header files are not found. How do I get these to compile in my project?

Linh Phan
  • 83
  • 1
  • 9
  • 1
    What OS do you use? How did you install OpenEXR? What `g++` command did you use? What was the error message? – Mark Setchell Jan 13 '21 at 20:20
  • https://gcc.gnu.org/onlinedocs/cpp/Search-Path.html `/usr/local` is not treated as a "default" location for things - it's a place for "manually installed things" so you'd need to add your include path manually.... I'm surprised the OpenEXR installation instructions don't mention this – Asteroids With Wings Jan 13 '21 at 21:43
  • Yes thank you! I was able to just do – Linh Phan Jan 14 '21 at 03:31

0 Answers0