JUCE Random class in Mac

Is anyone having problems using the JUCE Random class on Mac?

I am getting the following error when trying to compile a part of code that uses the Random class:
error: ISO C++ forbids declaration of ‘Random’ with no type

Has any one had this same problem?

Sounds like you’re including some other headers that also define Random, and it’s a name collision… If you’re having trouble, check out the juce_WithoutMacros.h file, which might help get around it.

I did run into that, and I seem to remember having to specify juce::random somehow. But I haven’t encountered it in a while, and I suspect - maybe, that it’s because I’m just targeting 10.4u now? Is that where you get the problem? 10.2.8 and PPC?


Thanks Bruce. Specifying juce::random was the key…