login
Header Space

 
 

Porting from Windows to Linux

January 20, 2004 - 3:32pm
Submitted by unosoft on January 20, 2004 - 3:32pm.
Linux

I'm Trying to port a program developed under windows to Linux.

My main question is regarding the header files.

such as

window.h
tchar.h

is there any Linux library, that deals with this?
like the Linux version of tchar.h windows.h

Thank you.

Use Wine

January 21, 2004 - 3:50pm
Anonymous

I believe you should be able to port your program easily by following these steps:

1. Compile using MinGW on Windows. This will eliminate any non-standard code that GCC doesn't understand.
2. Use Winelib (part of Wine) to compile your application on Linux
3. Gradually replace parts of your program with Linux equivalents. E.g. Windows GUI -> GTK/QT

Any questions, see http://www.winehq.org or send them to wine-devel@winehq.org

Rob

WHAT ?

March 4, 2004 - 12:06am

>2. Use Winelib (part of Wine) to compile your application on Linux
whats f*ck you talking about ?

it is not too much problems to replace your only windows.h functions with analogues POSIX-like.
see Windows32 API and read more in MSDN.

window api

December 2, 2008 - 5:20am
mmm (not verified)

how to compile window program in linux?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
speck-geostationary