[GNU/Linux] Compilation stops on "assert" function
marcusmoller opened this issue · 1 comments
marcusmoller commented
The compilation using make
on my GNU/Linux system crashes on:
\033[1;33mcompiling\033[0m src/entities/EntityManager.cpp
src/entities/EntityManager.cpp: In member function ‘Player* EntityManager::getPlayer() const’:
src/entities/EntityManager.cpp:541:25: error: ‘assert’ was not declared in this scope
assert(m_player != NULL);
^
This is fixed by including the assert.h
header in src/entities/EntityManager.cpp:
#include <assert.h>
abodelot commented
Thank you for reporting! It seems Code::Block automatically imports assert.h in debug mode.