Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Cross compile Static Library from Linux for windows


    Hi,
    I want to compile static library in linux for windows 7

    kindly give me suggestions to compile and get it work

    Thanks

  2. #2
    Quote Originally Posted by steffi View Post
    I want to compile static library in linux for windows 7

    kindly give me suggestions to compile and get it work
    Do you mean you wish to compile a program on Linux (as an exe) and have it run on Windows?

    If so, then check out mingw, it might be what you need.

    It may already be packaged for your distro, e.g., on my Fedora box:
    Code:
    yum install mingw64-gcc
    then i could create a small C prog named test.c, and compile it like this:
    Code:
    x86_64-w64-mingw32-gcc -o test.exe test.c
    then test.exe is copied to my Win 7 64-bit box and run successfully.

  3. #3
    Hey,
    If you want to compile and even install windows programs or utilities on linux distributions so that u can use both linux and windows programms on ur linux box then you can install vmware workstation or oracle virtual box. With this you can run entire windows operating system on ur linux machine. But this will eat ur ram and slowdown ur box.
    The best way in my view is to install utility named "wine". It will enable u to install almost anything which runs on windows.
    yum install wine
    or apt-get install wine
    or rug in wine
    depending upon ur linux distribution.

    Thanks,
    jass

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •