How do you add framework to your programs? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do you add framework to your programs?

can also explain how it works, please?

29th Jul 2016, 11:48 PM
Night Stone
Night Stone - avatar
3 Answers
+ 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.
30th Jul 2016, 9:33 AM
Stefan
Stefan - avatar
0
thank you
30th Jul 2016, 1:01 PM
Night Stone
Night Stone - avatar
0
No problem :-)
30th Jul 2016, 1:50 PM
Stefan
Stefan - avatar