Back to wiki

RCS History

/ TOP / building.mdwn

Revision 1.4

__Unix Hosts__

Currently, PCC will build on most unix-based operating systems.

Building PCC is reasonably straight-forward:

    $ ./configure
    $ make&& make install

By default, the compiler is installed to /usr/local/bin/pcc and the pre-processor in /usr/local/libexec/cpp.

To use PCC as the system compiler you may need to modify some system header files.  See [[Supported-Platforms]] for information about your platform.

If you wish to build a cross-compiler, some further information is available at [[Cross-Compiler]].

If you wish to cross-compile PCC, some further information is available at [[Cross-Compile]]

__Microsoft Windows Host__

PCC will build on Microsoft Windows (check the mailing list for patches to mkext.c)

Compilation has been tested with Visual Studio 7, but should also work with the Microsoft C++ Toolkit.  You also need bison and flex as build tools.  These tools can be found in the [UnxTools]( distribution.

* open the Visual Studio Command Prompt
* change directory to the pcc source and into the os/win32 directory
* customize the paths in build.bat
* find bison.simple in the UnxTools distribution and modify build.bat to point to it's location, or copy this file into os\win32.
* run build.bat

By default, directories under c:\pcc will contain the built binaries.  You can add c:\pcc\bin to your path.

You will need the [YASM assembler](  Rename yasm.exe and copy the binary into c:\pcc\bin.  Install the libraries and include files under c:\pcc\include and c:\pcc\lib.

You will also need the include files and libraries from the [Microsoft Platform SDK]( and Microsoft's link.exe.

NOTE:  There is currently a known bug which will prevent pcc from compiling source files on win32 targets (underscores are not correctly prefixed to external symbols).

Powered by rcshistory.cgi 0.3