jeudi 3 décembre 2020

C++ error: ‘assert’ was not declared in this scope

In my c++ program when I compile it on clion it runs fine, but on unix server like this:

g++ -g -std=c++11 -DNDEBUG -Wall *.cpp

I get:

error: ‘assert’ was not declared in this scope

how can I solve this?

Aucun commentaire:

Enregistrer un commentaire