Hello
I have a question about distributing C programs:
What is the best way to guarantee that a compiled program will work on any other computer running the operating system it's compiled for?
I'm a computer science student and learned C/C++ while working in Visual Studio.
The programs i create use MSVC (dll) libraries and don't run on another computer. (they crash before launching)
Based on my knowledge i can come up with these solutions:
- Do a static build.
I don't know if that is possible while using the Visual Studio compiler.
- Inspect the executable and try to collect the necessary libraries.
Maybe there is software that does this automatically?
I hope someone with more programming experience can tell me what to do best and maybe evaluate my given options.
Thanks in advance,
Bert