winegcc
Wine C and C++ MinGW Compatible Compiler
- Provided by: wine64-tools (Version: 5.0-3ubuntu1)
- Source: wine
- Report a bug
Wine C and C++ MinGW Compatible Compiler
winegcc [options] infile...
winegcc is a gcc wrapper which tries to provide a MinGW compatible compiler under Linux. This is most useful to Win32 developers who can simply take their MinGW code from Windows, and recompile it without modifications under Winelib on Linux. wineg++ accepts mostly the same options as winegcc.
The goal of winegcc is to be able to simply replace gcc/g++/windres with winegcc/wineg++/wrc in a MinGW Makefile, and just recompile the application using Winelib under Wine. While typically there are small adjustments that must be made to the application source code and/or Makefile, it is quite easy to do them in a fashion that is compatible between the MinGW and Wine environments.
This manual will document only the differences from gcc; please consult the gcc manual for more information on those options.
gcc options: All gcc options are supported, and are passed along to the backend compiler.
winegcc defines __WINE__, for code that needs to know when it is being compiled under Wine. It also defines WIN32, _WIN32, __WIN32, __WIN32__, __WINNT, and __WINNT__ for compatibility with MinGW.
The dllimport/dllexport attributes are not supported at the moment, due to lack of support for these features in the ELF version of gcc.
Static linking is not currently supported against Wine DLLs. As a result, the -static, --static, and -Wl,-static options will generate an error.
Bugs can be reported on the Wine bug tracker.
winegcc was written by Dimitrie O. Paun.
winegcc is part of the Wine distribution, which is available through WineHQ, the Wine development headquarters.
gcc(1), winebuild(1), wrc(1), wine(1),
Wine documentation and
support.