C++ : Difference between linking library and adding include directories

后端 未结 3 901
夕颜
夕颜 2020-12-23 02:14

Pretty much title sums it up.

I\'m not sure the difference between the two if i\'d like to use a library.

Thanks!

3条回答
  •  自闭症患者
    2020-12-23 02:42

    Include directories are just for header files, which typically provide function/method signatures only. You need to link to a library to have access to its actual object code.

    See this question.

提交回复
热议问题