---
title: OBJC_ROOT_CLASS
framework: objectivec
role: symbol
role_heading: Macro
path: objectivec/objc_root_class
---

# OBJC_ROOT_CLASS

If you define an Objective-C root class, you receive a compiler error indicating that the class is defined without specifying a base class. You can avoid this compiler error by preceding the definition of the root class (that is, before the @interface directive) with OBJC_ROOT_CLASS.

## Declaration

```occ
#define OBJC_ROOT_CLASS
```
