๐ข About Harbour
Harbour is a modern, open-source xBase compiler with cross-platform support.
Harbour is a free software compiler for the xBase superset language, often referred to as Clipper-compatible. It is actively developed and supports multiple platforms, including Windows, Linux, macOS, and more.
Installation
How to install Harbour on your system.
# Clone the repository cd $XBASE_WORKSPACE/HB_Projects git clone https://github.com/harbour/core harbour-core cd harbour-core # Build and install make install
Tip: Use
sudo make install
if you want to install system-wide.
:: Clone the repository cd %XBASE_WORKSPACE%\HB_Projects git clone https://github.com/harbour/core harbour-core cd harbour-core :: Build with MinGW or MSVC win-make
Note: Ensure you have MinGW or Visual Studio installed.
# Clone the repository cd $XBASE_WORKSPACE/HB_Projects git clone https://github.com/harbour/core harbour-core cd harbour-core # Build and install make install
Tip: Use Homebrew to install dependencies:
brew install gcc
.
Configuration
Environment variables and build options for Harbour.
# Add to ~/.bashrc or ~/.zshrc export HB_COMPILER=gcc export HB_BUILD_OPTIM=yes export HB_BUILD_SHARED=no export CFLAGS="-O2 -march=native" export CXXFLAGS="-O2 -march=native" # Reload shell source ~/.bashrc
Note: Adjust
CFLAGS
for your architecture.
Examples
Simple Harbour code examples.
// Hello World in Harbour #include "hbapi.h" HB_FUNC( HELLOWORLD ) { hb_retc( "Hello, Harbour World!" ); }
Resources
Useful links and community resources.
๐ฌ Community
Join the Harbour community for support and discussions.
๐ธ Screenshots
Visual guide for Harbour setup.
Harbour Build

Successful Harbour build output
Harbour IDE

Harbour Integrated Development Environment