I successfully built a Juce lib cross compiled Win32 target in Linux as a Debug build, but when I switched to Release build I got this error:
i586-mingw32msvc-g++ -I/usr/i586-mingw32msvc/include -I/usr/lib/gcc/i586-mingw32msvc/3.4.5/include -I/usr/lib/gcc/i586-mingw32msvc/3.4.5/include/c++ -I/usr/lib/gcc/i586-mingw32msvc/3.4.5/include/c++/backward -I/usr/lib/gcc/i586-mingw32msvc/3.4.5/include/c++/i586-mingw32msvc -c /home/bill/dev/CBWorkspace/juce-SVN312-win32/src/juce_appframework/gui/graphics/colour/juce_ColourGradient.cpp -o …/…/…/bin/intermediate_win32/Release/src/juce_appframework/gui/graphics/colour/juce_ColourGradient.o
/home/bill/dev/CBWorkspace/juce-SVN312-win32/src/juce_appframework/gui/graphics/colour/…/colour/juce_PixelFormats.h: In member function `juce::PixelARGB* juce::ColourGradient::createLookupTable(int&) const’:
/home/bill/dev/CBWorkspace/juce-SVN312-win32/src/juce_appframework/gui/graphics/colour/…/colour/juce_PixelFormats.h:120: sorry, unimplemented: inlining failed in call to ‘void juce::PixelARGB::tween(const Pixel&, juce::uint32) throw () [with Pixel = juce::PixelARGB]’: function body not available
/home/bill/dev/CBWorkspace/juce-SVN312-win32/src/juce_appframework/gui/graphics/colour/juce_ColourGradient.cpp:161: sorry, unimplemented: called from here
If I change one parameter in the Release target, the problem magically disappears, I add: define _DEBUG=1
My guess is the issue might concern juce_PlatformDefs.h line 345:
#ifndef JUCE_DEBUG
#define forcedinline inline attribute((always_inline))
#else
#define forcedinline inline
#endif
This is SVN312 code. The cross compiler is GCC 3.4.5. Any thoughts?
Bill