Search code examples
c++g++embedded-linuxlibraries

If I develop an app FROM Microsoft in C++ Targeting Linux, are Miscrosft library good?


The situation is this:

I do not have access to a machine running on Linux, just a little embedded platform where I cannot install any IDE (which is in LINUX and is my target), so I got to develop the app from my Microsoft PC.

The question is: should I use Microsoft libraries? Because I am developing in a Microsoft environment, or should I use Linux libraries? Because my target is Linux?


Solution

  • Applications targeting Windows do not work out-of-the-box in a Linux system (see some discussion here https://superuser.com/a/209736).

    You could, however, use a Linux guest from the Windows host, through a virtual machine or even docker.

    Also, your "little chip target on which you cannot install an IDE" sounds like an embedded platform. Make sure the architecture on the target is the same as your windows pc x86-64 (intel). Many embedded platforms have a different architecture (e.g., ARM's aarch64). In this case, make sure to use an appropriate cross-compiler that will create code for the target.