# Src/game.h:76:7: error: forward declaration of ‘class player’

**URL:** https://discourse.cataclysmdda.org/t/src-game-h-76-7-error-forward-declaration-of-class-player/9936
**Category:** The Garage
**Created:** [June 26, 2015, 9:28pm UTC](https://discourse.cataclysmdda.org/t/src-game-h-76-7-error-forward-declaration-of-class-player/9936 "2015-06-26T21:28:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![v.v.b](https://avatars.discourse-cdn.com/v4/letter/v/a88e4f/32.png) [@v.v.b](https://discourse.cataclysmdda.org/u/v.v.b)
#### Post date: [June 26, 2015, 9:28pm UTC](https://discourse.cataclysmdda.org/t/src-game-h-76-7-error-forward-declaration-of-class-player/9936/1 "2015-06-26T21:28:14Z")

</div>

gentoo, x86\_64.  
cataclysm dda current git version (27.06.2015). can’t compile  
it says:

```auto
src/catalua.cpp: In member function ‘long int use_function::call(player*, item*, bool, const tripoint&) const’:
src/catalua.cpp:1126:55: error: invalid use of incomplete type ‘class player’
         if (player_instance != NULL && player_instance->is_player()) {
                                                       ^
In file included from src/catalua.cpp:6:0:
src/game.h:76:7: error: forward declaration of ‘class player’
 class player;
       ^
Makefile:454: recipe for target 'obj/catalua.o' failed
make: *** [obj/catalua.o] Error 1
```

---

<div class="post-metadata">

### Author: ![Rivet](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/rivet/32/11_2.png) [@Rivet](https://discourse.cataclysmdda.org/u/Rivet)
#### Post date: [June 27, 2015, 2:06am UTC](https://discourse.cataclysmdda.org/t/src-game-h-76-7-error-forward-declaration-of-class-player/9936/2 "2015-06-27T02:06:51Z")

</div>

This should be fixed now.

---

<div class="post-metadata">

### Author: ![v.v.b](https://avatars.discourse-cdn.com/v4/letter/v/a88e4f/32.png) [@v.v.b](https://discourse.cataclysmdda.org/u/v.v.b)
#### Post date: [June 27, 2015, 4:37am UTC](https://discourse.cataclysmdda.org/t/src-game-h-76-7-error-forward-declaration-of-class-player/9936/3 "2015-06-27T04:37:04Z")

</div>

Yep. It is. Thanks!
