#TC1017 #Mastery14

Creating your own libraries is really usefull to include a lot with ease.

It is relatively easy to create your own libraries, you just create you file named “mylibrary.cpp” and “a.h”. Then compile the library without a main program; this will create a file called “a.o”. After that you can your program with a main program and call your library as you would with any onther (#include ). Compile the program and add the library “a.o”. 

PS.- I saw another post where it said that could also act as a library.

 

CC BY 4.0 #TC1017 #Mastery14 by Juan Pablo Gonzalez Huezzo is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.