# Development

MariaDB Connector/C enables C and C++ applications to establish client connections to MariaDB database products over TLS.

## Build Your Application with Connector/C

When you build a C application, your compiler must link your application with the MariaDB Connector/C shared library.

The following `gcc` ([GNU GCC](https://gcc.gnu.org/)) command demonstrates how to link an application with the MariaDB Connector/C shared library using the `mariadb_config` utility to determine the compiler arguments:

```bash
gcc -o example example.c $(mariadb_config --include --libs)
```

If you are not using the `gcc` compiler, please consult your compiler's manual.

### Header Files

MariaDB Connector/C includes several header files. In some cases, developers might find it useful to inspect the MariaDB Connector/C header files to view the definitions of structures, functions, and constants.

The header files:

* Contain the definitions of structures, functions, and constants.
* Are installed to the `/usr/include/mariadb/` directory by default on Linux.

C applications developed using MariaDB Connector/C must include the `mysql.h` header file.

<sub>*This page is: Copyright © 2025 MariaDB. All rights reserved.*</sub>

{% @marketo/form formId="4316" %}


---

# 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://mariadb.com/docs/connectors/mariadb-connector-c/development.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.
