What is required to link Juce with console app?
I’ve added “initialiseJuce_NonGUI ( )” and “shutdownJuce_NonGUI ( )” at the start/end of main…
Then I get a bunc of linker errors. Here is a part of ld output:
c:/msys/local/lib/libjuce.a
(juce_win32_SystemStats.o)
:juce_win32_SystemStats.cpp:(.text+0x5d4):
undefined reference to `timeBeginPeriod@4'
...
Removed paths
....
undefined reference to `OleInitialize@4'
undefined reference to `OleUninitialize@0'
undefined reference to `GetObjectA@12'
undefined reference to `CreateCompatibleDC@4'
undefined reference to `SelectObject@8'
undefined reference to `GetPixel@12'
undefined reference to `DeleteDC@4'
....
there is more :)
files mentioned in errors are: juce_win32_SystemStats.cpp juce_win32_Windowing.cpp and juce_win32_Fonts.cpp
OS: Win2000
CC: gcc 3.4.2 MinGW
What am I doing wrong?
Thanks

