C++ code for Linux |
Top Previous Next |
Pretranslated C++ code > Delphi RTL/VCL > C++ code for Linux
Under Linux with gcc the same code for the System unit and for the SysUtils unit can be used as for Visual C++. The code is in the folder:
..\Delphi2Cpp\Source\Other
For use under Linux or with other compilers than VisualC++ either the line
#include "stdafx.h"
has to be removed from the sources or a dummy header with this name has to be made. Some definitions, which are created by Visual Studio automatically are presupposed:
_UNICODE for unicode/widestring applications _CONSOLE for console applications _USRDLL for dll's
Under Linux the command line arguments aren't accessible before entering the main function of a program. This function therefore should start with something like:
System::Argv = argv; System::Argc = argc;
|
This page belongs to the Delphi2Cpp Documentation |
Delphi2Cpp home Content |