How do i compile an application where it will include all the libraries and be able to run on any computer?
Posted on 2005-03-08
I've written a program in MFC. As of now, the workspace probably has 19 .cpp files and an example of the libraries i have included are below:
#include "piggy.h" //user defined
#include "Login_In.h" //user defined
#include "MainMenu.h" //user defined
#include "pickQuestions.h" //user defined
#include "New_User.h" //user defined
#include "User.h" //user defined
#include "QandA.h" //userdefined
I've try to run the executable on my friend's computer but it gives him errors saying he needed the MFC something (?).
He suggested that I do a static compile, which would tack all the libraries right into the program (making the executable very large, but im not too worried about the size)...and he said something about the MFC drivers?
Anyways, I got kind of confused at that point. All I know for sure is that right now, this program is only executing on my computer. Any help would be oh so greatly appreciate on how i can get this program to work anywhere!