L
L
Lev Tsarev2017-02-27 17:00:48
C++ / C#
Lev Tsarev, 2017-02-27 17:00:48

Are C++ programs compiled to TDM-GCC cross-platform?

Will programs compiled with TDM-GCC work on Linux, for example?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2017-02-27
@leonzarjow

If you compiled them into .exe, then no - you need to compile for a specific platform.
Cross-platform does not mean that the same binary will work everywhere, but that the code is written in such a way that it can be compiled for different platforms into the appropriate binaries.

D
Dmitry, 2017-02-27
@TrueBers

There is no cross-platform compilation if the language does not have a virtual machine. The formats of executable files for Linux and Windows are completely different, their runtime is also different.
Cross-platform is code that can be compiled for different systems.
On the site of this toolchain it is written:
Means that he can only Windows.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question