Portable C/C++ exe
I know that C/C++ programs usually need to be compiled specifically for the system they are going to be run on. However, I'm wondering if there's a way to get around this. I plan to make a program that preforms very simple manipulation of an image, but I would like to distribute it to people in the form of an exe. Is there an easy way to make the program run on any system without the user needing any knowledge of how to compile a C/C++ program? Can I easily package the program in a way that it can self compile?
Thanks for putting up with this question. I'm not used to making programs for people on windows or those who I won't expect to use a make file. |
No.
This is one reason Java exists. |
I thought that might be the case. I've never used Java before, but I think I'll give it a try then. It's should end up being a simple program so I guess it's a good place to start anyway. Thanks for the quick reply!
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
Source code using Qt can be compiled to an executable for any platform. |
Quote:
|
Quote:
It is possible to make a package that'll "probably" compile and run on a platform that has autotools + Qt + certain version of compiler(i.e. on platform that contains certain strictly specified packages/software), but you can't make a program, that'll "selfcompile" anywhere - simply because "every possible platform" also includes "platforms without autotools/Qt/compiler". That's why it is impossible to implement this project in general case. |
Quote:
|
Quote:
|
All times are GMT -5. The time now is 10:53 PM. |