Polyman Documentation - v2.2.2
    Preparing search index...

    Function compileCPP

    • Compiles a C++ source file using g++. Uses -O2 optimization and C++23 standard.

      Parameters

      • sourcePath: string

        Path to the .cpp source file

      Returns Promise<void>

      Path to the compiled executable

      If file is not .cpp or compilation fails

      const executablePath = await compileCPP('solutions/main.cpp');
      // Returns: '/path/to/solutions/main'