0
How do I include a library that is not in my library folder in C++?
I know the directive of #include
with <>
can do the include of the file that is not in the same folder, but if I own multiple folders with a library with the same name, I wonder if it wouldn’t confuse the library that I created with other libraries of other C++ projects that I also created on my PC.
I wonder if there’s an option for him to search in a folder off the root without I need to put all the way from where it is, ""
, or he will be able to find my library with <>
even if I have other libraries in other folders with the same name?
I appreciate anyone who can help me.
This can be configured in your IDE, for example, in the visual studio you can search the 'include' folders in the options and put/type your folder there.
– snoopy