cangjie-cjc

Document the Cangjie compiler command-line interface and its options.

1|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/SunriseSummer/CangjieDocValidator --skill cangjie-cjc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cangjie-cjc
Source: https://github.com/SunriseSummer/CangjieDocValidator/tree/main/.github/skills/cjc
Command: npx skills add https://github.com/SunriseSummer/CangjieDocValidator --skill cangjie-cjc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive guide to the Cangjie compiler (cjc) command-line options, enabling users to efficiently compile and manage Cangjie projects.

Core Features & Use Cases

  • Compilation Control: Understand options for output types (executable, static/dynamic libraries), package compilation, and module management.
  • Dependency Management: Learn how to link libraries, manage import paths, and handle standard library linking.
  • Debugging & Optimization: Explore flags for generating debug information, verbose output, optimization levels, and cross-compilation.
  • Use Case: A developer needs to compile a Cangjie project into a dynamic library, link it with external C libraries, and ensure optimal performance for a release build.

Quick Start

Compile the file 'main.cj' into an executable named 'app' with optimization level 2 and full link-time optimization.

Frequently Asked Questions about cangjie-cjc

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

FAQPage Schema
How do I compile a Cangjie project into a dynamic library using cjc?

To compile a Cangjie project into a dynamic library, use the cjc command-line interface with specific output control options for dynamic libraries. This allows you to manage package compilation and generate the required library format.

What cjc compiler options are available for cross-compilation and optimization?

The cjc compiler supports cross-compilation scenarios and various optimization levels, including link-time optimization. These flags enable efficient build process management and ensure optimal performance for release builds.

How does module and package management work when compiling Cangjie code?

Cangjie compilation involves package compilation and module management options within the cjc interface. These features facilitate organizing and building complex project structures efficiently during software development.

Can I link external C libraries and manage import paths with the Cangjie compiler?

Yes, the Cangjie compiler provides dependency management options to link external C libraries, manage import paths, and handle standard library linking. This ensures proper integration of external code during the build process.

What flags do I use to generate debug information and enable testing in cjc?

The cjc interface includes specific flags for generating debug information, enabling verbose output, and handling testing scenarios. These options facilitate debugging and comprehensive testing during Cangjie software development.