'Why do I need a link path for libxml2 but not for libcurl using g++?

I'm new to using g++ and Linux (Ubuntu), at the moment i am building a project which uses libcurl and libxml2, when compiling I need to link the libxml2 headers but I don't need to link libcurl, g++ is able to find the libcurl headers without specifying a path.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source