Page 1 of 1

Compilation problem rev. 4076

Posted: Thu Jun 10, 2010 12:22 pm
by ogee77
Hello,

I run Windows XP SP3 with MinGw 4.4.0, I would compile CodeLite from source with no problems until today.
When I try to compile (actually it crashes while linking) rev. 4076 I got the following error message:

...
...
...
g++ -c "E:/dev/codelite/LiteEditor/breakpointsmgr.cpp" -mthreads -DHAVE_W32API_H -D__WXMSW__ -D_UNICODE -IC:\wxWidgets-2.8.10\lib\gcc_dll\mswu -IC:\wxWidgets-2.8.10\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -Wall -fno-strict-aliasing -O2 -D__WX__ -DWXUSINGDLL -o Release/breakpointsmgr.o "-I." "-I." "-I../CodeLite" "-I../sdk/wxsqlite3/include" "-I../sdk/wxscintilla/include" "-I../Plugin" "-I../Interfaces"
In file included from E:/dev/codelite/LiteEditor/breakpointsmgr.h:36,
from E:/dev/codelite/LiteEditor/breakpointsmgr.cpp:27:
C:\wxWidgets-2.8.10\include/wx/dragimag.h:17: warning: type attributes ignored after type is already defined
C:\wxWidgets-2.8.10\include/wx/dragimag.h:18: warning: type attributes ignored after type is already defined
C:\wxWidgets-2.8.10\include/wx/dragimag.h:19: warning: type attributes ignored after type is already defined
g++ -o ../Runtime/CodeLite.exe Release/cpp_symbol_tree.o Release/filedroptarget.o Release/fileview.o Release/resources.o Release/filehistory.o Release/breakpoint_dlg_base.o Release/breakpointdlg.o Release/debuggersettingsbasedlg.o Release/debuggersettingsdlg.o Release/dbgcommandbasedlg.o Release/dbgcommanddlg.o Release/attachdbgprocbasedlg.o Release/attachdbgprocdlg.o Release/quickdebugbase.o Release/quickdebugdlg.o Release/newquickwatch.o Release/new_quick_watch_dlg.o Release/simpletable.o Release/simpletablebase.o Release/listctrlpanelbase.o Release/listctrlpanel.o Release/close_all_dlg.o Release/lexer_page.o Release/free_text_dialog.o Release/add_option_dialog.o Release/envvar_dlg.o Release/envvar_table.o Release/findreplacedlg.o Release/findinfilesdlg.o Release/replaceinfilespanel.o Release/dialogspage.o Release/dialogspagebase.o Release/syntaxhighlightbasedlg.o Release/syntaxhighlightdlg.o Release/options_base_dlg2.o Release/options_dlg2.o Release/treebooknodebase.o Release/editor_options_general_guides_panel.o Release/editoroptionsgeneralguidespanelbase.o Release/editoroptionsgeneralindentationpanel.o Release/editoroptionsgeneralindetationpanelbase.o Release/editoroptionsgeneralrightmarginpanel.o Release/editoroptionsgeneralrightmarginpanelbase.o Release/editoroptionsgeneralsavepanel.o Release/editoroptionsgeneralsavepanelbase.o Release/editoroptionsgeneralcodenavpanelbase.o Release/editoroptionsgeneralcodenavpanel.o Release/editorsettingscomments.o Release/editorsettingscommentsbase.o Release/editorsettingscommentsdoxygenpanel.o Release/editorsettingscommentsdoxygenpanelbase.o Release/editorsettingsbookmarksbasepanel.o Release/editorsettingsbookmarkspanel.o Release/editorsettingsfolding.o Release/editorsettingsfoldingbase.o Release/editorsettingsdialogs.o Release/editorsettingsdialogsbase.o Release/editorsettingsmiscbasepanel.o Release/editorsettingsmiscpanel.o Release/editorsettingscaretbase.o Release/editorsettingscaret.o Release/editorsettings_terminal_base.o Release/editorsettingsterminal.o Release/editorsettingsdockingwindowsbase.o Release/editorsettingsdockingwidows.o Release/findinfilesdlgbase.o Release/yestoallbasedlg.o Release/yestoalldlg.o Release/env_var_dlg_base.o Release/quickoutlinedlg.o Release/setters_getters_base_dlg.o Release/setters_getters_dlg.o Release/symbols_dialog.o Release/symbols_dialog_base.o Release/tags_options_dlg.o Release/addincludefiledlg.o Release/addincludefiledlgbase.o Release/movefuncimplbasedlg.o Release/movefuncimpldlg.o Release/tags_options_base_dlg.o Release/tagsparsersearchpathsbasedlg.o Release/tags_parser_search_path_dlg.o Release/implementparentvirtualfunctionsbase.o Release/implement_parent_virtual_functions.o Release/advanced_settings.o Release/editcmpfileinfobase.o Release/editcmpfileinfodlg.o Release/compiler_pages.o Release/compileradvancepage.o Release/compilerfiletypespage.o Release/compilerpatternspage.o Release/compilerswitchespage.o Release/compilertoolspage.o Release/compilercompileroptionspage.o Release/compilerlinkeroptionspage.o Release/addoptioncheckdlg.o Release/addoptioncheckdlgbase.o Release/configuration_manager_base_dlg.o Release/configuration_manager_dlg.o Release/build_page.o Release/edit_configuration.o Release/edit_workspace_conf_dlg.o Release/new_configuration_dlg.o Release/buildsettingstab.o Release/buildsettingstabbase.o Release/batchbuildbasedlg.o Release/batchbuilddlg.o Release/depend_dlg_page.o Release/depends_dlg.o Release/project_settings_base_dlg.o Release/project_settings_dlg.o Release/buildorderbasepage.o Release/new_item_dlg.o Release/newworkspacebasedlg.o Release/newworkspacedlg.o Release/newprojectbasedlg.o Release/newprojectdlg.o Release/new_item_base_dlg.o Release/importfilesdialog.o Release/workspacesettingsbase.o Release/workspacesettingsdlg.o Release/plugindlgbase.o Release/pluginmgrdlg.o Release/commentpage.o Release/commentpagebase.o Release/acceltablebasedlg.o Release/acceltabledlg.o Release/newkeyshortcutbasedlg.o Release/newkeyshortcutdlg.o Release/aboutdlg.o Release/aboutdlgbase.o Release/tabgroupbasedlgs.o Release/tabgroupdlg.o Release/editorsettingslocal.o Release/editorsettingslocalbase.o Release/tasksfindwhatdlgbase.o Release/tasks_find_what_dlg.o Release/taskpanel.o Release/app.o Release/stack_walker.o Release/iconsextra.o Release/generalinfo.o Release/frame.o Release/customstatusbar.o Release/singleinstancethreadjob.o Release/webupdatethread.o Release/newversionbasedlg.o Release/newversiondlg.o Release/checktreectrl.o Release/checkdirtreectrl.o Release/fileexplorertree.o Release/debuggertip.o Release/cc_box.o Release/cc_boxbase.o Release/ccvirtuallistctrl.o Release/quickfindbar.o Release/navbar.o Release/filechecklist.o Release/filechecklistbase.o Release/clauidockart.o Release/settersgetterstreectrl.o Release/quickfindbarbase.o Release/messagepane_base.o Release/message_pane.o Release/navbarbase.o Release/context_base.o Release/context_cpp.o Release/context_manager.o Release/generic_context.o Release/menumanager.o Release/menu_event_handlers.o Release/cl_editor.o Release/renamesymbolbase.o Release/renamesymboldlg.o Release/stringhighlighterjob.o Release/context_diff.o Release/manager.o Release/importfilessettings.o Release/buildtabsettingsdata.o Release/colourthread.o Release/colourrequest.o Release/refactorindexbuildjob.o Release/macromanager.o Release/tabgroupmanager.o Release/tabgroupspane.o Release/code_parser.rc.o Release/svninfo.o Release/output_pane.o Release/workspace_pane.o Release/debuggerpane.o Release/fileexplorer.o Release/mainbook.o Release/tiptree.o Release/openwindowspanel.o Release/openwindowspanelbase.o Release/threadlistbasepanel.o Release/threadlistpanel.o Release/buidltab.o Release/outputtabwindow.o Release/findresultstab.o Release/shelltab.o Release/workspacetab.o Release/memoryview.o Release/memoryviewbase.o Release/errorstab.o Release/debuggerasciiviewerbase.o Release/debuggerasciiviewer.o Release/localstable.o Release/pluginmanager.o Release/keyboardmanager.o Release/breakpointpropertiesdlg.o Release/breakpointsmgr.o "-L." "-L." "-L../lib/gcc_lib" -lplugin_sdku -lCodeLiteu -lwxscintillau -lwxsqlite3u -lsqlite3 -lwxmsw28u -mthreads -LC:\wxWidgets-2.8.10\lib\gcc_dll -lwxmsw28u -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -Wl,--subsystem,windows -mwindows -Wl,-M=codelite.map -O2
Release/resources.o:resources.cpp:(.text+0x9a1c): undefined reference to `_imp___ZTV17wxMemoryFSHandler'
Release/resources.o:resources.cpp:(.text$_ZN17wxMemoryFSHandlerD0Ev[wxMemoryFSHandler::~wxMemoryFSHandler()]+0xb): undefined reference to `_imp___ZTV17wxMemoryFSHandler'
Release/resources.o:resources.cpp:(.text$_ZN17wxMemoryFSHandlerD1Ev[wxMemoryFSHandler::~wxMemoryFSHandler()]+0xb): undefined reference to `_imp___ZTV17wxMemoryFSHandler'
collect2: ld returned 1 exit status
mingw32-make.exe[1]: *** [../Runtime/CodeLite.exe] Error 1
mingw32-make.exe: *** [All] Error 2
mingw32-make.exe[1]: Leaving directory `E:/dev/codelite/LiteEditor'
----------Build Ended----------
1 errors, 260 warnings, total time: 00:13:00 seconds

My environment variables are:

WXWIN=C:\wxWidgets-2.8.10
WXCFG=gcc_dll\mswu
UNIT_TEST_PP_SRC_DIR=C:\UnitTest++-1.3
CodeLiteDir=C:\Program Files\CodeLite
PATH=$(PATH);C:\MinGW-4.4.0\bin


Regards,
Paul

Re: Compilation problem rev. 4076

Posted: Thu Jun 10, 2010 2:59 pm
by eranif
This is a MinGW error, to fix this:

Open the file resources.cpp, and replace the line (around line number: 20573):

Code: Select all

 else wxFileSystem::AddHandler(new wxMemoryFSHandler);
with this one:

Code: Select all

 else wxFileSystem::AddHandler(new wxMemoryFSHandlerBase);
Eran

Re: Compilation problem rev. 4076

Posted: Fri Jun 11, 2010 11:13 am
by ogee77
Thanks, this solved the problem!

Paul