# Static Function in Namespace Not Defined

### Error <a href="#error" id="error"></a>

```
static function 'FString OS_MDC_Keys::ReplaceAll()' declared but not defined
```

```cpp
namespace OS_MDC_Keys
{
  static FString ReplaceAll();
}
```

### Cause <a href="#cause" id="cause"></a>

A function declared as static in a namespace needs to be defined in the header.

### Fix <a href="#fix" id="fix"></a>

Either move the function definition to the header OR remove the static specifier. Global functions in namespaces do not need to be static.

```cpp
namespace OS_MDC_Keys
{
  static FString ReplaceAll() {}
}
```

```cpp
namespace OS_MDC_Keys
{
  FString ReplaceAll();
}
```


---

# 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://docs.oserosuite.com/technical-notes/unreal-engine-notes/compile-errors/static-function-in-namespace-not-defined.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.
