+ 1
How do you add framework to your programs?
can also explain how it works, please?
3 Respuestas
+ 1
I guess you didn't get an answer to your question yet as this is mostly a build system setup question. As with your own libraries, you make a framework available to another software part by giving the compiler the directories where its header and library files reside, as well as the library files to link against.
Your IDE should provide you with a visual means to do it. If not, for g++, clang++ and MSVC you use the "-I <include directory>" compiler switch (btw, capital i) to tell the compiler that under "<include directory>" some of your headers reside. "-libpath <library directory>" (for MSVC) or "-L <library directory>" (for g++ and clang++) give the directory where the libraries you intend to use are. "-l <library name>" tells the compiler which library to link against (btw, minor letter L).
You can use each of these switches multiple times, if you need to specify multiple include directories, library directories or libraries.
0
thank you
0
No problem :-)