bcb_build

Automates Borland C++ Builder 6 project compilation via bpr2mak and make command-line tools.

Updated May 28, 2026
One-click install
npx skills add https://github.com/HPI-Jimmy-Chiu/HT904_V899 --skill bcb-build-hpi-jimmy-chiu
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bcb_build
Source: https://github.com/HPI-Jimmy-Chiu/HT904_V899/tree/main/.agents/skills/bcb_build
Command: npx skills add https://github.com/HPI-Jimmy-Chiu/HT904_V899 --skill bcb-build-hpi-jimmy-chiu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Building legacy Borland C++ Builder 6 projects from the command line requires manually running bpr2mak to generate Makefiles, configuring PATH variables, and pre-creating hardcoded output directories, which is error-prone and tedious. ## Core Features & Use Cases - Automated BCB6 Compilation: Converts .bpr project files to Makefiles with bpr2mak and builds them with make, producing the final .exe via ilink32. - Build Modes: Supports incremental build (default), clean, and rebuild modes through a single batch script. - Configurable Toolchain: Respects the %BCB_ROOT% environment variable to override the default BCB6 installation path. - Use Case: A developer maintaining the HT9011UC firmware project can run one command to clean and rebuild HT9045.bpr without opening the BCB6 IDE, after creating the required Obj, PCH, and EXE directories. ## Quick Start Build my BCB6 project by running the build script with the project directory and the .bpr file name.

Frequently Asked Questions about bcb_build

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Borland C++ Builder 6 project from the command line?▼

Run bpr2mak on the .bpr file to generate a .mak Makefile, then run make -f on that file to compile and link. The build_bcb.bat script wraps both steps and accepts the project directory, .bpr filename, and an optional clean or rebuild mode.

How to clean or rebuild a BCB6 project without the IDE?▼

Pass clean or rebuild as the third argument to build_bcb.bat after the project directory and .bpr file. Clean removes intermediate objects, while rebuild performs a clean followed by a full compilation.

Can I use a custom BCB6 installation path?▼

Yes, set the BCB_ROOT environment variable to your BCB6 installation directory before running the script. Without it, the default path D:\ProgramFiles\Borland\CBuilder6 is used, and the Bin folder must contain bpr2mak.exe, make.exe, and bcc32.exe.

Why does the BCB6 build fail with 'Unable to open file *.obj'?▼

This linker error occurs because the Obj output directory hardcoded in the .bpr file's OBJFILES setting does not exist. Create the directory manually, for example with mkdir D:\Project\RDCode\Obj, then rerun the build.

Why do I get W8058 warnings or duplicate symbol linker warnings in BCB6?▼

W8058 warnings appear when the precompiled header cache directory specified by the -H= flag is missing, so create it first. Duplicate public symbol warnings between Arm variant objects are expected inline-function behavior and do not affect linking.