golazo
golazo

Reputation: 327

C++ error codes global namespace

i have got errors on visual studio 2010. i m using c++ and use opencv

Error C2039: 'exit' : is not a member of '`global namespace'' error C2873: 'exit' : symbol cannot be used in a using-declaration

Upvotes: 0

Views: 623

Answers (1)

Yakov Galka
Yakov Galka

Reputation: 72519

You should

#include <stdlib.h>

before using ::exit().

Upvotes: 2

Related Questions