Mingw + Code::Blocks doesn't work again


#1

Hello Jules,

Today I got JUCE sources from "DOWNLOAD JUCE FOR WINDOWS" link.

I am trying to compile Introjucer project from Code::Blocks and MingGW (gcc 4.8) using The Introjucer.cbp provided in extras directory.

DISPID_NEWWINDOW3 not found!

This is the console output:

-------------- Clean: Debug in The Introjucer (compiler: GNU GCC Compiler)---------------
Cleaned "The Introjucer - Debug"
-------------- Build: Debug in The Introjucer (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -Wno-strict-aliasing -Wno-strict-overflow -O0 -std=gnu++0x -mstackrealign -g -D__MINGW__=1 -D__MINGW_EXTENSION= -DDEBUG=1 -D_DEBUG=1 -DJUCER_CODEBLOCKS_20734A5D=1 -DJUCE_APP_VERSION=3.1.0 -DJUCE_APP_VERSION_HEX=0x30100 -I. -I..\..\JuceLibraryCode -c C:\Users\ccortiz\Desktop\JUCE_18Nov2014\modules\juce_core\juce_core.cpp -o obj\Debug\modules\juce_core\juce_core.o
mingw32-g++.exe -Wall -Wno-strict-aliasing -Wno-strict-overflow -O0 -std=gnu++0x -mstackrealign -g -D__MINGW__=1 -D__MINGW_EXTENSION= -DDEBUG=1 -D_DEBUG=1 -DJUCER_CODEBLOCKS_20734A5D=1 -DJUCE_APP_VERSION=3.1.0 -DJUCE_APP_VERSION_HEX=0x30100 -I. -I..\..\JuceLibraryCode -c C:\Users\ccortiz\Desktop\JUCE_18Nov2014\modules\juce_cryptography\juce_cryptography.cpp -o obj\Debug\modules\juce_cryptography\juce_cryptography.o
mingw32-g++.exe -Wall -Wno-strict-aliasing -Wno-strict-overflow -O0 -std=gnu++0x -mstackrealign -g -D__MINGW__=1 -D__MINGW_EXTENSION= -DDEBUG=1 -D_DEBUG=1 -DJUCER_CODEBLOCKS_20734A5D=1 -DJUCE_APP_VERSION=3.1.0 -DJUCE_APP_VERSION_HEX=0x30100 -I. -I..\..\JuceLibraryCode -c C:\Users\ccortiz\Desktop\JUCE_18Nov2014\modules\juce_data_structures\juce_data_structures.cpp -o obj\Debug\modules\juce_data_structures\juce_data_structures.o
mingw32-g++.exe -Wall -Wno-strict-aliasing -Wno-strict-overflow -O0 -std=gnu++0x -mstackrealign -g -D__MINGW__=1 -D__MINGW_EXTENSION= -DDEBUG=1 -D_DEBUG=1 -DJUCER_CODEBLOCKS_20734A5D=1 -DJUCE_APP_VERSION=3.1.0 -DJUCE_APP_VERSION_HEX=0x30100 -I. -I..\..\JuceLibraryCode -c C:\Users\ccortiz\Desktop\JUCE_18Nov2014\modules\juce_events\juce_events.cpp -o obj\Debug\modules\juce_events\juce_events.o
mingw32-g++.exe -Wall -Wno-strict-aliasing -Wno-strict-overflow -O0 -std=gnu++0x -mstackrealign -g -D__MINGW__=1 -D__MINGW_EXTENSION= -DDEBUG=1 -D_DEBUG=1 -DJUCER_CODEBLOCKS_20734A5D=1 -DJUCE_APP_VERSION=3.1.0 -DJUCE_APP_VERSION_HEX=0x30100 -I. -I..\..\JuceLibraryCode -c C:\Users\ccortiz\Desktop\JUCE_18Nov2014\modules\juce_graphics\juce_graphics.cpp -o obj\Debug\modules\juce_graphics\juce_graphics.o
C:\Users\ccortiz\Desktop\JUCE_18Nov2014\modules\juce_graphics\juce_graphics.cpp:47:4: warning: #warning "DirectWrite not currently implemented with mingw..." [-Wcpp]
   #warning "DirectWrite not currently implemented with mingw..."
    ^
mingw32-g++.exe -Wall -Wno-strict-aliasing -Wno-strict-overflow -O0 -std=gnu++0x -mstackrealign -g -D__MINGW__=1 -D__MINGW_EXTENSION= -DDEBUG=1 -D_DEBUG=1 -DJUCER_CODEBLOCKS_20734A5D=1 -DJUCE_APP_VERSION=3.1.0 -DJUCE_APP_VERSION_HEX=0x30100 -I. -I..\..\JuceLibraryCode -c C:\Users\ccortiz\Desktop\JUCE_18Nov2014\modules\juce_gui_basics\juce_gui_basics.cpp -o obj\Debug\modules\juce_gui_basics\juce_gui_basics.o
mingw32-g++.exe -Wall -Wno-strict-aliasing -Wno-strict-overflow -O0 -std=gnu++0x -mstackrealign -g -D__MINGW__=1 -D__MINGW_EXTENSION= -DDEBUG=1 -D_DEBUG=1 -DJUCER_CODEBLOCKS_20734A5D=1 -DJUCE_APP_VERSION=3.1.0 -DJUCE_APP_VERSION_HEX=0x30100 -I. -I..\..\JuceLibraryCode -c C:\Users\ccortiz\Desktop\JUCE_18Nov2014\modules\juce_gui_extra\juce_gui_extra.cpp -o obj\Debug\modules\juce_gui_extra\juce_gui_extra.o
In file included from C:\Users\ccortiz\Desktop\JUCE_18Nov2014\modules\juce_gui_extra\juce_gui_extra.cpp:128:0:
C:\Users\ccortiz\Desktop\JUCE_18Nov2014\modules\juce_gui_extra\native/juce_win32_WebBrowserComponent.cpp: In member function 'virtual HRESULT juce::WebBrowserComponent::Pimpl::EventHandler::Invoke(DISPID, const IID&, LCID, WORD, DISPPARAMS*, VARIANT*, EXCEPINFO*, UINT*)':
C:\Users\ccortiz\Desktop\JUCE_18Nov2014\modules\juce_gui_extra\native/juce_win32_WebBrowserComponent.cpp:154:38: error: 'DISPID_NEWWINDOW3' was not declared in this scope
             else if (dispIdMember == DISPID_NEWWINDOW3)
                                      ^
Process terminated with status 1 (0 minute(s), 48 second(s))
1 error(s), 1 warning(s) (0 minute(s), 48 second(s))
 

 


#2

Ok, try again now..


#3

Ok, the Workaround for MinGW works.

I am using a MakeFile (for MinGW) to compile the Introjucer project and check that all is right. smiley


ccortiz@CCORTIZP1W7 /c/JUCE-master_new/extras/Introjucer/Builds/MinGW
$ make
Compiling jucer_AppearanceSettings.cpp
Compiling jucer_CommandLine.cpp
Compiling jucer_DocumentEditorComponent.cpp
Compiling jucer_Main.cpp
Compiling jucer_MainWindow.cpp
Compiling jucer_OpenDocumentManager.cpp
Compiling jucer_SourceCodeEditor.cpp
Compiling jucer_ComponentTypeHandler.cpp
Compiling jucer_ButtonDocument.cpp
Compiling jucer_ComponentDocument.cpp
Compiling jucer_ColouredElement.cpp
Compiling jucer_PaintElement.cpp
Compiling jucer_PaintElementPath.cpp
Compiling jucer_ComponentLayoutEditor.cpp
Compiling jucer_ComponentOverlayComponent.cpp
Compiling jucer_EditingPanelBase.cpp
Compiling jucer_JucerDocumentEditor.cpp
Compiling jucer_PaintRoutineEditor.cpp
Compiling jucer_PaintRoutinePanel.cpp
Compiling jucer_ResourceEditorPanel.cpp
Compiling jucer_TestComponent.cpp
Compiling jucer_BinaryResources.cpp
Compiling jucer_ComponentLayout.cpp
Compiling jucer_GeneratedCode.cpp
Compiling jucer_JucerDocument.cpp
Compiling jucer_ObjectTypes.cpp
Compiling jucer_PaintRoutine.cpp
Compiling jucer_ProjectExporter.cpp
Compiling jucer_ResourceFile.cpp
Compiling jucer_Module.cpp
Compiling jucer_Project.cpp
Compiling jucer_ProjectContentComponent.cpp
Compiling jucer_ProjectType.cpp
Compiling jucer_CodeHelpers.cpp
Compiling jucer_FileHelpers.cpp
Compiling jucer_Icons.cpp
Compiling jucer_JucerTreeViewBase.cpp
Compiling jucer_MiscUtilities.cpp
Compiling jucer_SlidingPanelComponent.cpp
Compiling jucer_StoredSettings.cpp
Compiling jucer_NewFileWizard.cpp
Compiling jucer_NewProjectWizardClasses.cpp
Compiling BinaryData.cpp
Compiling juce_core.cpp
Compiling juce_cryptography.cpp
Compiling juce_data_structures.cpp
Compiling juce_events.cpp
Compiling juce_graphics.cpp
../../JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:47:4: warning: #wa
rning "DirectWrite not currently implemented with mingw..." [-Wcpp]
   #warning "DirectWrite not currently implemented with mingw..."
    ^
Compiling juce_gui_basics.cpp
Compiling juce_gui_extra.cpp
Linking The Introjucer
ccortiz@CCORTIZP1W7 /c/JUCE-master_new/extras/Introjucer/Builds/MinGW
$ ls
Makefile  build
ccortiz@CCORTIZP1W7 /c/JUCE-master_new/extras/Introjucer/Builds/MinGW
$ cd build/
ccortiz@CCORTIZP1W7 /c/JUCE-master_new/extras/Introjucer/Builds/MinGW/build
$ ./The\ Introjucer.exe

This is my MinGW MakeFile if anyone is interested:


# Automatically generated makefile, created by the Introjucer
# Don't edit this file! Your changes will be overwritten when you re-save the Introjucer project!
# (this disables dependency generation if multiple architectures are set)
DEPFLAGS := $(if $(word 2, $(TARGET_ARCH)), , -MMD)
ifndef CONFIG
  CONFIG=Debug
endif
ifeq ($(CONFIG),Debug)
  BINDIR := build
  LIBDIR := build
  OBJDIR := build/intermediate/Debug
  OUTDIR := build
  ifeq ($(TARGET_ARCH),)
    TARGET_ARCH := -march=native
  endif
  CPPFLAGS := $(DEPFLAGS) -D "__MINGW_EXTENSION" -D "__MINGW__=1" -D "JUCER_CODEBLOCKS_20734A5D=1" -D "JUCE_APP_VERSION=3.1.1" -D "JUCE_APP_VERSION_HEX=0x30101" -D "DEBUG=1" -D "_DEBUG=1" -D "JUCER_MINGW_MAKE_7354EBF8=1" -I ../../JuceLibraryCode -I ../../JuceLibraryCode/modules
  CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -g -ggdb -O0 -std=gnu++0x -mstackrealign
  CXXFLAGS += $(CFLAGS)
  LDFLAGS += $(TARGET_ARCH) -L$(BINDIR) -L$(LIBDIR) -lcomdlg32 -limm32 -lole32 -loleaut32 -lrpcrt4 -lshlwapi -luuid -lversion -lwininet -lwinmm -lws2_32 -lwsock32 -lgdi32 -luser32 -lkernel32 -lcomctl32 -mwindows 
  LDDEPS :=
  RESFLAGS :=  -D "__MINGW_EXTENSION" -D "__MINGW__=1" -D "JUCER_CODEBLOCKS_20734A5D=1" -D "JUCE_APP_VERSION=3.1.1" -D "JUCE_APP_VERSION_HEX=0x30101" -D "DEBUG=1" -D "_DEBUG=1" -D "JUCER_MINGW_MAKE_7354EBF8=1" -I ../../JuceLibraryCode -I ../../JuceLibraryCode/modules
  TARGET := The\ Introjucer
  BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH)
  CLEANCMD = rm -rf $(OUTDIR)/$(TARGET) $(OBJDIR)
endif
ifeq ($(CONFIG),Release)
  BINDIR := build
  LIBDIR := build
  OBJDIR := build/intermediate/Release
  OUTDIR := build
  ifeq ($(TARGET_ARCH),)
    TARGET_ARCH := -march=native
  endif
  CPPFLAGS := $(DEPFLAGS) -D "__MINGW_EXTENSION" -D "__MINGW__=1" -D "JUCER_CODEBLOCKS_20734A5D=1" -D "JUCE_APP_VERSION=3.1.1" -D "JUCE_APP_VERSION_HEX=0x30101" -D "NDEBUG=1" -D "JUCER_MINGW_MAKE_7354EBF8=1" -I ../../JuceLibraryCode -I ../../JuceLibraryCode/modules
  CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -Os -std=gnu++0x -mstackrealign
  CXXFLAGS += $(CFLAGS)
  LDFLAGS += $(TARGET_ARCH) -L$(BINDIR) -L$(LIBDIR) -fvisibility=hidden -lcomdlg32 -limm32 -lole32 -loleaut32 -lrpcrt4 -lshlwapi -luuid -lversion -lwininet -lwinmm -lws2_32 -lwsock32 -lgdi32 -luser32 -lkernel32 -lcomctl32 -mwindows 
  LDDEPS :=
  RESFLAGS :=  -D "__MINGW_EXTENSION" -D "__MINGW__=1" -D "JUCER_CODEBLOCKS_20734A5D=1" -D "JUCE_APP_VERSION=3.1.1" -D "JUCE_APP_VERSION_HEX=0x30101" -D "NDEBUG=1" -D "JUCER_MINGW_MAKE_7354EBF8=1" -I ../../JuceLibraryCode -I ../../JuceLibraryCode/modules
  TARGET := The\ Introjucer
  BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH)
  CLEANCMD = rm -rf $(OUTDIR)/$(TARGET) $(OBJDIR)
endif
OBJECTS := \
  $(OBJDIR)/jucer_AppearanceSettings_788d9889.o \
  $(OBJDIR)/jucer_CommandLine_f35de107.o \
  $(OBJDIR)/jucer_DocumentEditorComponent_695dff1d.o \
  $(OBJDIR)/jucer_Main_f8488f5b.o \
  $(OBJDIR)/jucer_MainWindow_1e163aeb.o \
  $(OBJDIR)/jucer_OpenDocumentManager_4c72d210.o \
  $(OBJDIR)/jucer_SourceCodeEditor_461f5487.o \
  $(OBJDIR)/jucer_ComponentTypeHandler_6bec6262.o \
  $(OBJDIR)/jucer_ButtonDocument_56c341cc.o \
  $(OBJDIR)/jucer_ComponentDocument_92868083.o \
  $(OBJDIR)/jucer_ColouredElement_70cbc839.o \
  $(OBJDIR)/jucer_PaintElement_653460.o \
  $(OBJDIR)/jucer_PaintElementPath_908894a5.o \
  $(OBJDIR)/jucer_ComponentLayoutEditor_aeb44f8d.o \
  $(OBJDIR)/jucer_ComponentOverlayComponent_fd508d63.o \
  $(OBJDIR)/jucer_EditingPanelBase_6c2ed9ee.o \
  $(OBJDIR)/jucer_JucerDocumentEditor_2c581e26.o \
  $(OBJDIR)/jucer_PaintRoutineEditor_f6ac0344.o \
  $(OBJDIR)/jucer_PaintRoutinePanel_c309a0d7.o \
  $(OBJDIR)/jucer_ResourceEditorPanel_a558f2e2.o \
  $(OBJDIR)/jucer_TestComponent_db757dc4.o \
  $(OBJDIR)/jucer_BinaryResources_e0f99b46.o \
  $(OBJDIR)/jucer_ComponentLayout_6ea00129.o \
  $(OBJDIR)/jucer_GeneratedCode_9ca4ef7e.o \
  $(OBJDIR)/jucer_JucerDocument_ff8afcc2.o \
  $(OBJDIR)/jucer_ObjectTypes_4406f01c.o \
  $(OBJDIR)/jucer_PaintRoutine_e1e891ee.o \
  $(OBJDIR)/jucer_ProjectExporter_eefe2e5b.o \
  $(OBJDIR)/jucer_ResourceFile_6af120d3.o \
  $(OBJDIR)/jucer_Module_3f7666a5.o \
  $(OBJDIR)/jucer_Project_c131864a.o \
  $(OBJDIR)/jucer_ProjectContentComponent_60de0eee.o \
  $(OBJDIR)/jucer_ProjectType_1bc27a24.o \
  $(OBJDIR)/jucer_CodeHelpers_c317179c.o \
  $(OBJDIR)/jucer_FileHelpers_f98ed0ad.o \
  $(OBJDIR)/jucer_Icons_9db2f51e.o \
  $(OBJDIR)/jucer_JucerTreeViewBase_d043309d.o \
  $(OBJDIR)/jucer_MiscUtilities_25b68c82.o \
  $(OBJDIR)/jucer_SlidingPanelComponent_9aa7a2ab.o \
  $(OBJDIR)/jucer_StoredSettings_26078d2c.o \
  $(OBJDIR)/jucer_NewFileWizard_fac97f47.o \
  $(OBJDIR)/jucer_NewProjectWizardClasses_891f6fa2.o \
  $(OBJDIR)/BinaryData_ce4232d4.o \
  $(OBJDIR)/juce_core_aff681cc.o \
  $(OBJDIR)/juce_cryptography_25c7e826.o \
  $(OBJDIR)/juce_data_structures_bdd6d488.o \
  $(OBJDIR)/juce_events_79b2840.o \
  $(OBJDIR)/juce_graphics_c8f1e7a4.o \
  $(OBJDIR)/juce_gui_basics_a630dd20.o \
  $(OBJDIR)/juce_gui_extra_7767d6a8.o \
.PHONY: clean
$(OUTDIR)/$(TARGET): $(OBJECTS) $(LDDEPS) $(RESOURCES)
    @echo Linking The Introjucer
    -@mkdir -p $(BINDIR)
    -@mkdir -p $(LIBDIR)
    -@mkdir -p $(OUTDIR)
    @$(BLDCMD)
clean:
    @echo Cleaning The Introjucer
    @$(CLEANCMD)
strip:
    @echo Stripping The Introjucer
    -@strip --strip-unneeded $(OUTDIR)/$(TARGET)
$(OBJDIR)/jucer_AppearanceSettings_788d9889.o: ../../Source/Application/jucer_AppearanceSettings.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_AppearanceSettings.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_CommandLine_f35de107.o: ../../Source/Application/jucer_CommandLine.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_CommandLine.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_DocumentEditorComponent_695dff1d.o: ../../Source/Application/jucer_DocumentEditorComponent.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_DocumentEditorComponent.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_Main_f8488f5b.o: ../../Source/Application/jucer_Main.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_Main.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_MainWindow_1e163aeb.o: ../../Source/Application/jucer_MainWindow.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_MainWindow.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_OpenDocumentManager_4c72d210.o: ../../Source/Application/jucer_OpenDocumentManager.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_OpenDocumentManager.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_SourceCodeEditor_461f5487.o: ../../Source/Code\ Editor/jucer_SourceCodeEditor.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_SourceCodeEditor.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_ComponentTypeHandler_6bec6262.o: ../../Source/ComponentEditor/components/jucer_ComponentTypeHandler.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_ComponentTypeHandler.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_ButtonDocument_56c341cc.o: ../../Source/ComponentEditor/documents/jucer_ButtonDocument.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_ButtonDocument.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_ComponentDocument_92868083.o: ../../Source/ComponentEditor/documents/jucer_ComponentDocument.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_ComponentDocument.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_ColouredElement_70cbc839.o: ../../Source/ComponentEditor/paintelements/jucer_ColouredElement.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_ColouredElement.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_PaintElement_653460.o: ../../Source/ComponentEditor/paintelements/jucer_PaintElement.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_PaintElement.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_PaintElementPath_908894a5.o: ../../Source/ComponentEditor/paintelements/jucer_PaintElementPath.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_PaintElementPath.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_ComponentLayoutEditor_aeb44f8d.o: ../../Source/ComponentEditor/ui/jucer_ComponentLayoutEditor.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_ComponentLayoutEditor.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_ComponentOverlayComponent_fd508d63.o: ../../Source/ComponentEditor/ui/jucer_ComponentOverlayComponent.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_ComponentOverlayComponent.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_EditingPanelBase_6c2ed9ee.o: ../../Source/ComponentEditor/ui/jucer_EditingPanelBase.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_EditingPanelBase.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_JucerDocumentEditor_2c581e26.o: ../../Source/ComponentEditor/ui/jucer_JucerDocumentEditor.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_JucerDocumentEditor.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_PaintRoutineEditor_f6ac0344.o: ../../Source/ComponentEditor/ui/jucer_PaintRoutineEditor.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_PaintRoutineEditor.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_PaintRoutinePanel_c309a0d7.o: ../../Source/ComponentEditor/ui/jucer_PaintRoutinePanel.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_PaintRoutinePanel.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_ResourceEditorPanel_a558f2e2.o: ../../Source/ComponentEditor/ui/jucer_ResourceEditorPanel.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_ResourceEditorPanel.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_TestComponent_db757dc4.o: ../../Source/ComponentEditor/ui/jucer_TestComponent.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_TestComponent.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_BinaryResources_e0f99b46.o: ../../Source/ComponentEditor/jucer_BinaryResources.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_BinaryResources.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_ComponentLayout_6ea00129.o: ../../Source/ComponentEditor/jucer_ComponentLayout.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_ComponentLayout.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_GeneratedCode_9ca4ef7e.o: ../../Source/ComponentEditor/jucer_GeneratedCode.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_GeneratedCode.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_JucerDocument_ff8afcc2.o: ../../Source/ComponentEditor/jucer_JucerDocument.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_JucerDocument.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_ObjectTypes_4406f01c.o: ../../Source/ComponentEditor/jucer_ObjectTypes.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_ObjectTypes.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_PaintRoutine_e1e891ee.o: ../../Source/ComponentEditor/jucer_PaintRoutine.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_PaintRoutine.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_ProjectExporter_eefe2e5b.o: ../../Source/Project\ Saving/jucer_ProjectExporter.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_ProjectExporter.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_ResourceFile_6af120d3.o: ../../Source/Project\ Saving/jucer_ResourceFile.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_ResourceFile.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_Module_3f7666a5.o: ../../Source/Project/jucer_Module.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_Module.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_Project_c131864a.o: ../../Source/Project/jucer_Project.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_Project.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_ProjectContentComponent_60de0eee.o: ../../Source/Project/jucer_ProjectContentComponent.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_ProjectContentComponent.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_ProjectType_1bc27a24.o: ../../Source/Project/jucer_ProjectType.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_ProjectType.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_CodeHelpers_c317179c.o: ../../Source/Utility/jucer_CodeHelpers.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_CodeHelpers.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_FileHelpers_f98ed0ad.o: ../../Source/Utility/jucer_FileHelpers.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_FileHelpers.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_Icons_9db2f51e.o: ../../Source/Utility/jucer_Icons.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_Icons.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_JucerTreeViewBase_d043309d.o: ../../Source/Utility/jucer_JucerTreeViewBase.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_JucerTreeViewBase.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_MiscUtilities_25b68c82.o: ../../Source/Utility/jucer_MiscUtilities.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_MiscUtilities.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_SlidingPanelComponent_9aa7a2ab.o: ../../Source/Utility/jucer_SlidingPanelComponent.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_SlidingPanelComponent.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_StoredSettings_26078d2c.o: ../../Source/Utility/jucer_StoredSettings.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_StoredSettings.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_NewFileWizard_fac97f47.o: ../../Source/Wizards/jucer_NewFileWizard.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_NewFileWizard.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/jucer_NewProjectWizardClasses_891f6fa2.o: ../../Source/Wizards/jucer_NewProjectWizardClasses.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling jucer_NewProjectWizardClasses.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/BinaryData_ce4232d4.o: ../../JuceLibraryCode/BinaryData.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling BinaryData.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/juce_core_aff681cc.o: ../../JuceLibraryCode/modules/juce_core/juce_core.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling juce_core.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/juce_cryptography_25c7e826.o: ../../JuceLibraryCode/modules/juce_cryptography/juce_cryptography.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling juce_cryptography.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/juce_data_structures_bdd6d488.o: ../../JuceLibraryCode/modules/juce_data_structures/juce_data_structures.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling juce_data_structures.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/juce_events_79b2840.o: ../../JuceLibraryCode/modules/juce_events/juce_events.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling juce_events.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/juce_graphics_c8f1e7a4.o: ../../JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling juce_graphics.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/juce_gui_basics_a630dd20.o: ../../JuceLibraryCode/modules/juce_gui_basics/juce_gui_basics.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling juce_gui_basics.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
$(OBJDIR)/juce_gui_extra_7767d6a8.o: ../../JuceLibraryCode/modules/juce_gui_extra/juce_gui_extra.cpp
    -@mkdir -p $(OBJDIR)
    @echo "Compiling juce_gui_extra.cpp"
    @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
-include $(OBJECTS:%.o=%.d)

 

But something strange with generated Code::Blocks project. May be the Introjucer exporter or my CB version (13.12).sad

When I load the Introjucer CB project and try to compile, some errors appear:


-------------- Build: Debug in The Introjucer (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -Wno-strict-aliasing -Wno-strict-overflow -O0 -std=c++11 -mstackrealign -g -D__MINGW__=1 -D__MINGW_EXTENSION= -DDEBUG=1 -D_DEBUG=1 -DJUCER_CODEBLOCKS_20734A5D=1 -DJUCE_APP_VERSION=3.1.1 -DJUCE_APP_VERSION_HEX=0x30101 -I. -I..\..\JuceLibraryCode -c C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\juce_core.cpp -o obj\Debug\JuceLibraryCode\modules\juce_core\juce_core.o
In file included from C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\juce_core.h:173:0,
                 from C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\juce_core.cpp:44:
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_UTF8.h: In member function 'int juce::CharPointer_UTF8::compareIgnoreCase(juce::CharPointer_UTF8) const':
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_UTF8.h:425:41: error: 'stricmp' was not declared in this scope
         return stricmp (data, other.data);
                                         ^
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_UTF8.h: In member function 'juce::int64 juce::CharPointer_UTF8::getIntValue64() const':
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_UTF8.h:485:29: error: '_atoi64' was not declared in this scope
         return _atoi64 (data);
                             ^
In file included from C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\juce_core.h:174:0,
                 from C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\juce_core.cpp:44:
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_UTF16.h: In member function 'int juce::CharPointer_UTF16::compareIgnoreCase(juce::CharPointer_UTF16) const':
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_UTF16.h:355:42: error: '_wcsicmp' was not declared in this scope
         return _wcsicmp (data, other.data);
                                          ^
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_UTF16.h: In member function 'int juce::CharPointer_UTF16::compareIgnoreCaseUpTo(juce::CharPointer_UTF16, int) const':
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_UTF16.h:360:62: error: '_wcsnicmp' was not declared in this scope
         return _wcsnicmp (data, other.data, (size_t) maxChars);
                                                              ^
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_UTF16.h: In member function 'int juce::CharPointer_UTF16::getIntValue32() const':
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_UTF16.h:412:27: error: '_wtoi' was not declared in this scope
         return _wtoi (data);
                           ^
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_UTF16.h: In member function 'juce::int64 juce::CharPointer_UTF16::getIntValue64() const':
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_UTF16.h:422:29: error: '_wtoi64' was not declared in this scope
         return _wtoi64 (data);
                             ^
In file included from C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\juce_core.h:176:0,
                 from C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\juce_core.cpp:44:
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_ASCII.h: In member function 'int juce::CharPointer_ASCII::compareIgnoreCase(juce::CharPointer_ASCII) const':
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_ASCII.h:280:41: error: 'stricmp' was not declared in this scope
         return stricmp (data, other.data);
                                         ^
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_ASCII.h: In member function 'juce::int64 juce::CharPointer_ASCII::getIntValue64() const':
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_ASCII.h:350:29: error: '_atoi64' was not declared in this scope
         return _atoi64 (data);
                             ^
In file included from C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\juce_core.cpp:162:0:
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\time/juce_Time.cpp: In member function 'juce::String juce::Time::getTimeZone() const':
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\time/juce_Time.cpp:365:12: error: '_tzset' was not declared in this scope
     _tzset();
            ^
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\time/juce_Time.cpp:376:49: error: '_tzname' was not declared in this scope
     const char** const zonePtr = (const char**) _tzname;
                                                 ^
In file included from C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\juce_core.h:173:0,
                 from C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\juce_core.cpp:44:
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_UTF8.h: In member function 'int juce::CharPointer_UTF8::compareIgnoreCase(juce::CharPointer_UTF8) const':
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_UTF8.h:429:5: warning: control reaches end of non-void function [-Wreturn-type]
     }
     ^
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_UTF8.h: In member function 'juce::int64 juce::CharPointer_UTF8::getIntValue64() const':
C:\JUCE-master_new\extras\Introjucer\JuceLibraryCode\modules\juce_core\text/juce_CharPointer_UTF8.h:489:5: warning: control reaches end of non-void function [-Wreturn-type]
     }
     ^
Process terminated with status 1 (0 minute(s), 1 second(s))
10 error(s), 2 warning(s) (0 minute(s), 1 second(s))
 

I'm using the same project and code compiled with MakeFile, so I think it could be a CB project/exporter issue.

 

Thanks for the support.

 


#4

I have generated a new "The Introjucer.cbp" for the current Introjucer code, with an older binary of Introjucer and now CB works and is able to compile the lasted sources.

So I think that Code::Blocks exporter is broken in the last JUCE branch.

To generate the .cbp I am using Introjucer from JUCE 3.04.

 

 


#5

I don't think the errors above have anything to do with the exporter - it looks to me more like the mingw headers don't include some basic standard functions.. Really not sure why that would be the case.


#6

I ran into this problem when compiling the Juce Demo with Code Blocks. Defining DISPID_NEWWINDOW3 = 273 (found this value in google) fixed the error for me, and the project was succesfully built.


#7

Today I have tried again with lasted sources an works OK.

 

Thanks