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. C / C++ / MFC
  4. compiling linux programs on windows xp

compiling linux programs on windows xp

Scheduled Pinned Locked Moved C / C++ / MFC
linuxquestion
7 Posts 5 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.
  • S Offline
    S Offline
    shiraztk
    wrote on last edited by
    #1

    Hi I want to compile source code of a program written under linux. I want to compile the source under windows xp. Is there any tool to do the port.? please suggest me any... regards

    The Best Religion is Science. Once you understand it, you will know God.

    S C L 3 Replies Last reply
    0
    • S shiraztk

      Hi I want to compile source code of a program written under linux. I want to compile the source under windows xp. Is there any tool to do the port.? please suggest me any... regards

      The Best Religion is Science. Once you understand it, you will know God.

      S Offline
      S Offline
      shiraztk
      wrote on last edited by
      #2

      Hi How about cygwin? anyone familiar with it? Regards

      The Best Religion is Science. Once you understand it, you will know God.

      C 1 Reply Last reply
      0
      • S shiraztk

        Hi I want to compile source code of a program written under linux. I want to compile the source under windows xp. Is there any tool to do the port.? please suggest me any... regards

        The Best Religion is Science. Once you understand it, you will know God.

        C Offline
        C Offline
        Cedric Moonen
        wrote on last edited by
        #3

        What kind of program is it ? Was it planned to be cross-platform ? If no, then as far as I know you can't do that. But it all depends of the program itself. If it is a simple console application that doesn't use any linux API, then it is cross-platfrom. If it is a program that display a GUI for instance using the Linux API, then it won't work.


        Cédric Moonen Software developer
        Charting control [v1.1]

        1 Reply Last reply
        0
        • S shiraztk

          Hi I want to compile source code of a program written under linux. I want to compile the source under windows xp. Is there any tool to do the port.? please suggest me any... regards

          The Best Religion is Science. Once you understand it, you will know God.

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          Zainu wrote:

          Is there any tool to do the port.?

          Yes[^]

          led mike

          M 1 Reply Last reply
          0
          • S shiraztk

            Hi How about cygwin? anyone familiar with it? Regards

            The Best Religion is Science. Once you understand it, you will know God.

            C Offline
            C Offline
            Chris Losinger
            wrote on last edited by
            #5

            Zainu wrote:

            How about cygwin?

            it's been a while since i've used it, but i think that if you want to run the program on XP, cygwin is the way to go. but, if you want to compile the program on XP to run on a Linux machine, the process is very complicated - IIRC, you have to rebuild all the tools (gc, the linker, the libraries, maybe even the kernel) first. a few years ago, i needed to build an EXE that could run on a specific Linux distribution, and i went down they cygwin path for a few days, trying to get it to work; but it quickly became far too much hassle. i ended up spending a couple hundred $ to buy a cheap PC, installed the Linux distribution on it and built the EXE there. then i moved the EXE to the target computer, and got on with my life.

            image processing toolkits | batch image processing | blogging

            1 Reply Last reply
            0
            • L led mike

              Zainu wrote:

              Is there any tool to do the port.?

              Yes[^]

              led mike

              M Offline
              M Offline
              Mark Salsbery
              wrote on last edited by
              #6

              :laugh: AHHH I just HAD to click on the link. When it popped up I spewed root beer on my monitor. Thanks man.

              "If you can dodge a wrench, you can dodge a ball."

              S 1 Reply Last reply
              0
              • M Mark Salsbery

                :laugh: AHHH I just HAD to click on the link. When it popped up I spewed root beer on my monitor. Thanks man.

                "If you can dodge a wrench, you can dodge a ball."

                S Offline
                S Offline
                shiraztk
                wrote on last edited by
                #7

                cygwin is great. I was using to compile a 3d game. For the past two days i was sitting on this. The only problem is initial setting up of the libraries and headers and then too download the cygwin packages you require. Regards

                The Best Religion is Science. Once you understand it, you will know God.

                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