Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. How to run Linux cpp excutable in winows os?

How to run Linux cpp excutable in winows os?

Scheduled Pinned Locked Moved Managed C++/CLI
c++linuxtutorialquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mathivanaan
    wrote on last edited by
    #1

    Hi, I have one linux cpp executable file. i want how to run this executable file in windows OS?. please give any idea? or urls Regards, M.Mathivanan

    L D J 3 Replies Last reply
    0
    • M mathivanaan

      Hi, I have one linux cpp executable file. i want how to run this executable file in windows OS?. please give any idea? or urls Regards, M.Mathivanan

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, 1. you're in the wrong forum, C++ on Linux most likely will be "native C++", not be "managed .NET code". 2. it has been many years ago I last did this, back then "cygwin" was the answer. Try Googling it. :)

      Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

      Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

      1 Reply Last reply
      0
      • M mathivanaan

        Hi, I have one linux cpp executable file. i want how to run this executable file in windows OS?. please give any idea? or urls Regards, M.Mathivanan

        D Offline
        D Offline
        DaveX86
        wrote on last edited by
        #3

        If you have Windows 7 Ultimate or Enterprise, you can install the 'Subsystem for Unix-based Applications' (SUA) which you get a Windows compatible gcc compiler with g++ and all the Unix/Linux goodies. You will have to re-compile your C++ file in this new Posix environment for it to run in Windows. For into how to install go to: http://www.suacommunity.com/SUA.aspx[^]

        1 Reply Last reply
        0
        • M mathivanaan

          Hi, I have one linux cpp executable file. i want how to run this executable file in windows OS?. please give any idea? or urls Regards, M.Mathivanan

          J Offline
          J Offline
          jschell
          wrote on last edited by
          #4

          mathivanaan wrote:

          please give any idea?

          1. Recode it so it is a windows code, and then recompile. This could be a lot of work or little work depending on what the executable does. 2. Find/write a simulator/virtual machine that 'runs' an execuble from the targeted system on windows. 3. Create a server that runs on a linux box. It runs the executable. It has a communications API. Your Windows app talks to that server. In the above 2 is probably the most difficult solution by far.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups