Skip to main content

Mastery14

1 min read

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.