Do I need to include the libraries with the program if I'm going to be giving it to a friend? Say for example I use wxWidgets, would I need to include it with my program to be able to run on my friends computer?
Do I need to include the libraries with the program if I'm going to be giving it to a friend? Say for example I use wxWidgets, would I need to include it with my program to be able to run on my friends computer?
If it's dynamically linked, yes. If it's statically linked, then it's merged into your .exe
Not if you statically link to wxWidgets, which is what I would recommend. If your friend already has the dlls and they are used by other applications on his computer, you risk breaking said applications if you don't deliver the same version of the dlls. Then your friend will throw a rock through your window.