0
0

I am making a multi thread application in Win api, so I need to make the sound system variables global. But when I put the variables

FMOD_CHANNEL *channel[5];
FMOD_SOUND *sound[5];
FMOD_SYSTEM *system;

in front of the WInMain function, I get a host of error messages. While if I use them as static local variables, they work fine. I get the error messages

error C2365: ‘system’ : redefinition; previous definition was ‘function’,
‘function’ : ‘FMOD_SYSTEM *’ differs in levels of indirection from ‘int (__cdecl *)(const char *)’ and
FMOD_System_PlaySound’ : different types for formal and actual parameter 1

Could anybody help me with this?

Sincerely
Keitel

  • You must to post comments
0
0

‘system’ ‘sound’ and ‘channel’ are generic names that might conflict with declarations from windows.h

namespace them and you will probably find your problem fixed

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.