Creating your own libraries is really usefull to include a lot with ease.<\/p>\n
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 PS.- I saw another post where it said that #define<\/a> could also act as a library.<\/p>\n \u00a0<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":" Creating your own libraries is really usefull to include a lot with ease.<\/p>\n 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”. <\/a><\/p>\n PS.- I saw another post where it said that #define<\/a> could also act as a library.<\/p>\n <\/p>\n<\/div>\n