Installation

Download

Download the latest release from GitHub Releases.

Package Contents

dbx-ffi/
├── include/
│   ├── dbx.h        # C API header
│   └── dbx.hpp      # C++ wrapper header
├── lib/
│   └── dbx_ffi.dll  # Windows x64
└── README.md

Visual Studio Setup

1. Add Include Directory

Project Properties → C/C++ → General → Additional Include Directories:

D:\path\to\dbx-ffi\include

2. Add Library Directory

Project Properties → Linker → General → Additional Library Directories:

D:\path\to\dbx-ffi\lib

Project Properties → Linker → Input → Additional Dependencies:

dbx_ffi.lib

4. Copy DLL

Copy dbx_ffi.dll to your output directory.

GCC/MinGW Setup

gcc -I./include -L./lib main.c -ldbx_ffi -o myapp.exe

CMake Setup

cmake_minimum_required(VERSION 3.10)
project(MyApp)

include_directories(${CMAKE_SOURCE_DIR}/dbx-ffi/include)
link_directories(${CMAKE_SOURCE_DIR}/dbx-ffi/lib)

add_executable(myapp main.c)
target_link_libraries(myapp dbx_ffi)

Verify Installation

C

#include "dbx.h"
#include <stdio.h>

int main() {
    DbxDatabase* db = dbx_open_in_memory();
    printf("DBX C loaded successfully!\n");
    dbx_close(db);
    return 0;
}

C++

#include "dbx.hpp"
#include <iostream>

int main() {
    auto db = dbx::Database::openInMemory();
    std::cout << "DBX C++ loaded successfully!" << std::endl;
    return 0;
}

Next Steps


Copyright © 2026 ByteLogicCore. MIT OR Apache-2.0 License.

This site uses Just the Docs, a documentation theme for Jekyll.