0

I'm building a project and I wanted to make a precompiled header to boost performance. The issue is that I'm also using stbi_image headers in my project, which means I would have to include my header on all the stbi files in my project AND make sure there is no duplicate header declarations in any of them.

Is there another way to include stbi or a way to bypass including the precompiled header in those files?

Julk
  • 169
  • 7
  • You might want to specify your compiler and build system. Setting things up for precompiled headers is quite specific to those. – Peter Apr 12 '20 at 11:32
  • *'stbi files in my project"* - aren't those headers from external library? *" I would have to include my header on all the stbi files"* - this does not make any sense. One typically includes library headers into precompiled header, not other way around. – user7860670 Apr 12 '20 at 11:40

0 Answers0