Difference between header search path and library search path?

This iPhone context question is -

What is the difference between Header Search Paths and Library Search Paths ?

+7
source share
2 answers

The header search path is where the compiler will look for header files (ie, the “.h” files that you include in your class implementations).

The library search path is the place where the linker will look for compiled object files (or archive files containing these compiled object files) that are referenced from code compiled and linked.

+10
source
  • Header Search Paths - This is a check before compilation that can generate Module not found . There are places for public headers, just tell Xcode where they are.

  • Library Search Path - This is a compile time check that Library not found for can Library not found for . There are library locations, just tell Xcode where they will use it for links.

0
source

All Articles