extern ISoundEngine* engine;

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
Dances
Posts: 454
Joined: Sat Jul 02, 2005 1:45 am
Location: Canada
Contact:

extern ISoundEngine* engine;

Post by Dances »

right, ages since I've been around....

The code in the subject creates an error for me; "expected ';' before token '*'".

wtf?
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

The compiler doesn't know the type ISoundEngine. Either you aren't including the appropriate header or you are not specifying the namespace as necessary.

Code: Select all

#include <irrKlang.h>

// this is okay
extern irr::audio::ISoundEngine* engine;

// or this
using namespace irr;
using namespace irr::audio;
extern ISoundEngine* engine;
Dances
Posts: 454
Joined: Sat Jul 02, 2005 1:45 am
Location: Canada
Contact:

Post by Dances »

oh, god, it was the namespace.

I'm still such a novice :oops:

Thanks Vitek.
Post Reply