How do I use libraries / includes in C++?

点点圈 提交于 2020-01-05 04:20:25

问题


Is there a difference between #include and libraries? Or can you just include libraries in your application? Another thing I want to know is if I want to distribute my application how and where do I put the files that I've included in my program? Am I allowed to put the libraries and header files in the same folder as the .cpp files?

This confusion arose when I was trying to figure out how to install the SFML library into Dev-C++, now before you tell me that Dev is old and I should change, I won't because it works fine for me. I don't like Visual because it's a little disorienting, I just want something simple, like Dev-C++. If I have a folder called libraries in with my source files can I just do

#include <libraries/something.h>?

来源:https://stackoverflow.com/questions/52230999/how-do-i-use-libraries-includes-in-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!