4

I have heard of WINE but I don't like it because it's slow on the computers I have tested and almost always crashes. It also has some unpleasant looking gui.
I am wondering if there is a "win32" library in c/c++ for linux that produces native linux code
so that if I have my source code for windows, I can just recompile and produce a working linux application. Is this possible?

CB Bailey
  • 755,051
  • 104
  • 632
  • 656
Dr Deo
  • 4,650
  • 11
  • 43
  • 73

3 Answers3

4

You're looking for Winelib.

Community
  • 1
  • 1
Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358
3

What you want is a portable library, e.g. Boost or Qt.

Bastien Léonard
  • 60,478
  • 20
  • 78
  • 95
  • yes, I have heard of qt. But as far as i know , it does not support win32 calls. Like most programmers i wonder if it is possible to avoid learning a new api for graphics – Dr Deo May 07 '10 at 11:19
  • 2
    @stakx: I agree, but native APIs aren't designed to be portable. If he wants to write code which will result in native executables on Windows and Linux with a good-looking UI, he has to use something else. – Bastien Léonard May 07 '10 at 11:50
  • +1 These portable libraries will also make it possible to compile your program for Mac. For a C++ programmer, these libraries are well worth the trouble to learn. – Emile Cormier May 07 '10 at 12:17
0

I dont think you will find something that complete. But if you look for something that provides some windows API under Linux then look at: windows to linux port library

sostim
  • 11
  • 1