Mastery14

Diego Plascencia Sanabria A01229988

For creating and using your own lybraries just follow the next steps:

-First, create the files on “mylibrary.cpp” and “mylibrary.h”

-Next, compile the library without the function main(), this will generate a file called “myfile.o”

-Next, create another file called “main.cpp” (it can be another name, but this one is easier), in this file you need to “mylibrary.h”

-Finally, Compile main.cpp and add the library “myfile.o” 

Hope it help you.

CC BY 4.0 Mastery14 by diego plascencia is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.