But, when you try to run the same application program on your friends system(which is neither installed with Allegro packages nor with Dev C++ IDE) , will it run fine ?
The answer depends on how you are going to run the application.
If you try to run the application from the portable IDE( the one which I carried on my USB drive ) by going to (Execute -> Compile) and then (Execute -> Run), the application will run fine.
But, if you run the application by double-clicking the application icon it will pop up an error saying that, "alleg42.dll was not found", though the allegro package is present on your portable IDE.

It doesn't mean that your application is not portable. To avoid this error, just reinstall the allegro packages on to your portable IDE. This process will automatically copy all the necessary dll(Dynamic-link library) files, including alleg42.dll file on to your friends system. That's it. Now, again run the application program by double-clicking it. It will surely run.
Here, you have installed the dependencies( i.e., dll files ) on to your friend's system.
0 comments:
Post a Comment