Harbour

Modern open-source xBase compiler

!!!website in development!!!

๐Ÿšข About Harbour

Harbour is a modern, open-source xBase compiler with cross-platform support.

Introduction

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.

Step 1
# 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.

Step 2
# 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.

Step 3
// Hello World in Harbour
#include "hbapi.h"

HB_FUNC( HELLOWORLD )
{
   hb_retc( "Hello, Harbour World!" );
}

Resources

Useful links and community resources.

Community

๐Ÿ“š Documentation

Official Harbour documentation and guides.

๐Ÿ’ฌ Community

Join the Harbour community for support and discussions.

๐Ÿ“ธ Screenshots

Visual guide for Harbour setup.

Harbour Build

Harbour Build

Successful Harbour build output

Harbour IDE

Harbour IDE

Harbour Integrated Development Environment