Link to home
Start Free TrialLog in
Avatar of chinese_bunny
chinese_bunny

asked on

How do i compile an application where it will include all the libraries and be able to run on any computer?

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 "stdafx.h"
#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

#include "wininet.h"
#include "winnt.h"

#include <fstream>
#include <iostream.h>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string>
#include <vector>
#include <cstring>

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!
ASKER CERTIFIED SOLUTION
Avatar of sgvill
sgvill

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chinese_bunny
chinese_bunny

ASKER

Thank you very much for both your comments. :)
they are very helpful. <3333