# Environment Setup

## Overview

To develop a C++ application using the BMC C++ SDK, ensure that both the BMC bridge executable and the SDK library are reachable in the system's PATH (the latter is only necessary for Windows users). Additionally, the library uses the `nlohmann_json` library, which is a requirement for formatting the parameters of the command requests.

Follow these steps to set up the environment:

1. Add the directory containing the BMC bridge executable and the directory containing the library to the PATH environment variable before running the application.

Alternatively, prepend the PATH variable to the command execution:

**On macOS:**

```shell
DYLD_LIBRARY_PATH=/path/to/dynamic_library PATH=$PATH:/path/to/bmcbridge ./your_app
```

**On Linux:**

```shell
LD_LIBRARY_PATH=/path/to/dynamic_library PATH=$PATH:/path/to/bmcbridge ./your_app
```

**On Windows (using Command Prompt):**

```shell
set PATH=%PATH%;\path\to\installation_dir\bmcbridge;\path\to\installation_dir
your_app.exe
```

**Or on Windows (using PowerShell):**

```shell
$env:PATH += ";\path\to\installation_dir\bmcbridge\;\path\to\installation_dir"
.\your_app.exe
```

Replace `/path/to/installation_dir` with the actual path to the `installation_dir` directory. Ensure to use the correct slashes for your operating system (`/` for Mac/Linux, `\` for Windows).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.binho.io/getting-started/c++-sdk/environment-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
