Compile linux program under windows.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tupacshakaur
    New Member
    • Jan 2018
    • 5

    Compile linux program under windows.

    Hi,

    Opening eclipse from windows operating system is it possible to create a project in c language and compile the program for linux and not for windows?If possible, can someone give me some guidance?

    I didn't find the right solution from the internet.
    Last edited by Rabbit; Feb 24 '18, 05:32 PM. Reason: link removed
  • adamk127
    New Member
    • Feb 2018
    • 1

    #2
    It is better to download a set of tools for compiling Linux programs by MinGW

    IT support

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      The short answer is no. Windows isn't Linux.

      The longer answer is yes but you will need to "wrap" system libraries in such a way that when you build on Linux you use Linux libraries and when you build on Windows you use Windows libraries and your code uses neither but calls the library wrapper function you invented.

      These things have already been done. Just select a library to use, pay money and off you go.

      Read up on how to cross-compile.

      Comment

      Working...