r705 compilation error


#1

Hi,

svn r705 fails to compile on Linux here, with:

In file included from platform_specific_code/juce_linux_Files.cpp:68:
platform_specific_code/../../macosx/platform_specific_code/juce_posix_SharedCode.h: In function ‘const juce::String juce::juce_getOutputFromCommand(const juce::String&)’:
platform_specific_code/../../macosx/platform_specific_code/juce_posix_SharedCode.h:404: error: ‘Random’ has not been declared
make[1]: *** [../../bin/intermediate_linux/Debug/juce_linux_Files.o] Error 1

The following change solves this issue:

Index: build/linux/platform_specific_code/juce_linux_Files.cpp
===================================================================
--- build/linux/platform_specific_code/juce_linux_Files.cpp     (revision 705)
+++ build/linux/platform_specific_code/juce_linux_Files.cpp     (working copy)
@@ -53,6 +53,7 @@

 #include "../../../src/juce_core/io/files/juce_FileInputStream.h"
 #include "../../../src/juce_core/io/files/juce_FileOutputStream.h"
+#include "../../../src/juce_core/basics/juce_Random.h"
 #include "../../../src/juce_core/basics/juce_SystemStats.h"
 #include "../../../src/juce_core/basics/juce_Time.h"
 #include "../../../src/juce_core/io/network/juce_URL.h"

#2

Yes! Sorry, and thanks for that!


#3

No problem :slight_smile: