Using Winelib to run on Linux

SmartWin++ Guide

Using SmartWin++ on Linux with WINE 

Background:

SmartWin++ is based upon the WIN32 API.  But you can use the WIN32 suport from WineLib ( http://www.winehq.com/site/documentation ) on Linux/Unix and thus build and run SmartWin++ source on Linux/Unix.  As of November 19th, 2005 we have had some success in getting the tests to run under winelib, but there are some problems too.  See testcheck.html in the tests directory for the current status,

One way to get the SmartWin++ samples on Linux.

 

Notes on build methods:

"wineg++", as provided by wine, does the compiles and links  as a wrapper around "g++".  The makefiles use the Unix libc library and the built in C++ standard libraries. This means that there is no support for MSVCRT specific calls.  It may be possible to build SmartWin using wineg++'s -mno-cygwin option  (See man wineg++ for details) , but it produces lots of errors from the cstdlib at the moment.  If someone is successful using -mno-cygwin, please let us know what you did.

The result of linking gives a hello.so.1 shared executable which can be run with "wine hello.so.1". 

You can use winemaker to convert a Windows based program to something suitable for winelib.  You should already be using forward slashes in #include "dir/dir/file.h", and taking case into account with filenames.

#ifdef __WINE__
#else
#endif
is used for the minimal Linux/Wine specific code.

 

Helpful Links:

http://cvsbook.red-bean.com/cvsbook.html

 

 

Back to SmartWin website
SourceForge.net Logo