G’day,
I’m compiling a shared object on 64 bit Linux (LinuxMint 12 Lisa) that uses JUCE and gcc produces the following error:
[quote]In file included from …/…/JuceLibraryCode/…/…/juce/amalgamation/…/src/native/linux/juce_linux_NativeCode.cpp:117:0,
from …/…/JuceLibraryCode/…/…/juce/amalgamation/juce_amalgamated_template.cpp:418,
from …/…/JuceLibraryCode/…/…/juce/amalgamation/juce_amalgamated4.cpp:31,
from …/…/JuceLibraryCode/JuceLibraryCode4.cpp:15:
…/…/JuceLibraryCode/…/…/juce/amalgamation/…/src/native/linux/juce_linux_Windowing.cpp: In member function ‘void juce::LinuxComponentPeer::handleMotionNotifyEvent(const XPointerMovedEvent*)’:
…/…/JuceLibraryCode/…/…/juce/amalgamation/…/src/native/linux/juce_linux_Windowing.cpp:1440:33: error: invalid operands of types ‘Window {aka long unsigned int}’ and ‘std::nullptr_t’ to binary ‘operator!=’
[/quote]
Here’s the problem code:
parentWindow is of type Window (long unsigned int) and gcc does not like the comparison with nullptr.
Should it be Window* or something?
I’m compiling with -std=c++0x flag, of cause.
And yes, Visual Studio does not care (when I compile a dll) …
Cheers,
RomanKo