Author Topic: problem build CB from CVS using codeblock.cbp in CodeBlocks  (Read 18692 times)

Offline cyberkoa

  • Plugin developer
  • Almost regular
  • ****
  • Posts: 145
    • http://
Platform : Windows 2000 Pro
Wx version : 2.4.2
CodeBlocks version : 1.0 Final

I have downloaded the latest CVS , and I try to use the codeblock.cbp to build codeblocks in codeblocks.

I encounter some problems. Here is the summary what I have done so far.

1. I open the src\CodeBlocks.cbp
2. I change the link library to wxmsw.
3. I add in the wxwidgets lib directories.
4. Compile , failed.
5。 From the error msg appearred , I found that I do not have xrc and stc compiled , I compile them in MSYS.
6. Recompile again , previous problem solved but new problem arise
7. I hv tried to search the forum and wiki but it only information about building codeblock in Linux is provided or discussed.

Here is my project settings

link directory
sdk\tinyxml
<$WXWIN>\lib\msw
<$WXWIN>\lib\release "which keep the release library of wxwidgets)
<$WXWIN>\lib
<$WXWIN>\contrib\lib\release
..\src

link option
libwxmsw


Code

Project   : Code::Blocks
Compiler  : GNU GCC Compiler (called directly)
Directory : C:\project\codeblock\codeblocks\src\
--------------------------------------------------------------------------------
Switching to target: tinyXML
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\tinyxml\tinyxml.cpp -o .objs\sdk\tinyxml\tinyxml.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\tinyxml\tinyxmlerror.cpp -o .objs\sdk\tinyxml\tinyxmlerror.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\tinyxml\tinyxmlparser.cpp -o .objs\sdk\tinyxml\tinyxmlparser.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\tinyxml\tinystr.cpp -o .objs\sdk\tinyxml\tinystr.o
ar.exe -r sdk\tinyxml\libtxml.a .objs\sdk\tinyxml\tinyxml.o .objs\sdk\tinyxml\tinyxmlerror.o .objs\sdk\tinyxml\tinyxmlparser.o .objs\sdk\tinyxml\tinystr.o
ranlib sdk\tinyxml\libtxml.a
Switching to target: sdk
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\manager.cpp -o .objs\sdk\manager.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\Managers\StdAfx.cpp -o .objs\sdk\Managers\StdAfx.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\autodetectcompilers.cpp -o .objs\sdk\autodetectcompilers.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\cbeditor.cpp -o .objs\sdk\cbeditor.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\cbeditorprintout.cpp -o .objs\sdk\cbeditorprintout.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\cbplugin.cpp -o .objs\sdk\cbplugin.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\cbproject.cpp -o .objs\sdk\cbproject.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\cbworkspace.cpp -o .objs\sdk\cbworkspace.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\compileoptionsbase.cpp -o .objs\sdk\compileoptionsbase.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\compiler.cpp -o .objs\sdk\compiler.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\compilerfactory.cpp -o .objs\sdk\compilerfactory.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\compileroptions.cpp -o .objs\sdk\compileroptions.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\compiletargetbase.cpp -o .objs\sdk\compiletargetbase.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\configmanager.cpp -o .objs\sdk\configmanager.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\configuretoolsdlg.cpp -o .objs\sdk\configuretoolsdlg.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\confirmreplacedlg.cpp -o .objs\sdk\confirmreplacedlg.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\devcpploader.cpp -o .objs\sdk\devcpploader.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\editarrayfiledlg.cpp -o .objs\sdk\editarrayfiledlg.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\editarrayorderdlg.cpp -o .objs\sdk\editarrayorderdlg.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\editarraystringdlg.cpp -o .objs\sdk\editarraystringdlg.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\editorbase.cpp -o .objs\sdk\editorbase.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\editorcolorset.cpp -o .objs\sdk\editorcolorset.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\editorconfigurationdlg.cpp -o .objs\sdk\editorconfigurationdlg.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\editormanager.cpp -o .objs\sdk\editormanager.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\edittooldlg.cpp -o .objs\sdk\edittooldlg.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\filegroupsandmasks.cpp -o .objs\sdk\filegroupsandmasks.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\finddlg.cpp -o .objs\sdk\finddlg.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\globals.cpp -o .objs\sdk\globals.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\importers_globals.cpp -o .objs\sdk\importers_globals.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\incrementalselectlistdlg.cpp -o .objs\sdk\incrementalselectlistdlg.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\macrosmanager.cpp -o .objs\sdk\macrosmanager.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\managedthread.cpp -o .objs\sdk\managedthread.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\Managers\Managers.cpp -o .objs\sdk\Managers\Managers.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\menuitemsmanager.cpp -o .objs\sdk\menuitemsmanager.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\messagelog.cpp -o .objs\sdk\messagelog.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\messagemanager.cpp -o .objs\sdk\messagemanager.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\msvc7loader.cpp -o .objs\sdk\msvc7loader.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\msvc7workspaceloader.cpp -o .objs\sdk\msvc7workspaceloader.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\msvcloader.cpp -o .objs\sdk\msvcloader.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\msvcworkspaceloader.cpp -o .objs\sdk\msvcworkspaceloader.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\multiselectdlg.cpp -o .objs\sdk\multiselectdlg.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\newfromtemplatedlg.cpp -o .objs\sdk\newfromtemplatedlg.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\personalitymanager.cpp -o .objs\sdk\personalitymanager.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\pipedprocess.cpp -o .objs\sdk\pipedprocess.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\pluginmanager.cpp -o .objs\sdk\pluginmanager.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\pluginsconfigurationdlg.cpp -o .objs\sdk\pluginsconfigurationdlg.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\printing_types.cpp -o .objs\sdk\printing_types.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\projectbuildtarget.cpp -o .objs\sdk\projectbuildtarget.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\projectfileoptionsdlg.cpp -o .objs\sdk\projectfileoptionsdlg.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\projectlayoutloader.cpp -o .objs\sdk\projectlayoutloader.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\projectloader.cpp -o .objs\sdk\projectloader.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\projectmanager.cpp -o .objs\sdk\projectmanager.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\projectoptionsdlg.cpp -o .objs\sdk\projectoptionsdlg.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\projectsfilemasksdlg.cpp -o .objs\sdk\projectsfilemasksdlg.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\projecttemplateloader.cpp -o .objs\sdk\projecttemplateloader.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\replacedlg.cpp -o .objs\sdk\replacedlg.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\sdk_events.cpp -o .objs\sdk\sdk_events.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\selecttargetdlg.cpp -o .objs\sdk\selecttargetdlg.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\simplelistlog.cpp -o .objs\sdk\simplelistlog.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\simpletextlog.cpp -o .objs\sdk\simpletextlog.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\templatemanager.cpp -o .objs\sdk\templatemanager.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\toolsmanager.cpp -o .objs\sdk\toolsmanager.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\workspaceloader.cpp -o .objs\sdk\workspaceloader.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\xtra_classes.cpp -o .objs\sdk\xtra_classes.o
mingw32-g++.exe   -Wall -g -pipe -mthreads -fno-pcc-struct-return -fno-rtti -fmessage-length=0 -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DEXPORT_LIB -DEXPORT_EVENTS -D_USRDLL    -IC:\wxWindows-2.4.2\include -IC:\wxWindows-2.4.2\contrib\include  -IC:\MinGW\include -c sdk\xtra_res.cpp -o .objs\sdk\xtra_res.o
mingw32-g++.exe -shared  -Wl,--out-implib=devel\libcodeblocks.a -Wl,--dll   -Lsdk\tinyxml -LC:\wxWindows-2.4.2\lib\msw -LC:\wxWindows-2.4.2\lib\release -LC:\wxWindows-2.4.2\lib -LC:\wxWindows-2.4.2\contrib\lib -LC:\project\codeblock\codeblocks\src  -LC:\MinGW\lib .objs\sdk\manager.o .objs\sdk\Managers\StdAfx.o .objs\sdk\autodetectcompilers.o .objs\sdk\cbeditor.o .objs\sdk\cbeditorprintout.o .objs\sdk\cbplugin.o .objs\sdk\cbproject.o .objs\sdk\cbworkspace.o .objs\sdk\compileoptionsbase.o .objs\sdk\compiler.o .objs\sdk\compilerfactory.o .objs\sdk\compileroptions.o .objs\sdk\compiletargetbase.o .objs\sdk\configmanager.o .objs\sdk\configuretoolsdlg.o .objs\sdk\confirmreplacedlg.o .objs\sdk\devcpploader.o .objs\sdk\editarrayfiledlg.o .objs\sdk\editarrayorderdlg.o .objs\sdk\editarraystringdlg.o .objs\sdk\editorbase.o .objs\sdk\editorcolorset.o .objs\sdk\editorconfigurationdlg.o .objs\sdk\editormanager.o .objs\sdk\edittooldlg.o .objs\sdk\filegroupsandmasks.o .objs\sdk\finddlg.o .objs\sdk\globals.o .objs\sdk\importers_globals.o .objs\sdk\incrementalselectlistdlg.o .objs\sdk\macrosmanager.o .objs\sdk\managedthread.o .objs\sdk\Managers\Managers.o .objs\sdk\menuitemsmanager.o .objs\sdk\messagelog.o .objs\sdk\messagemanager.o .objs\sdk\msvc7loader.o .objs\sdk\msvc7workspaceloader.o .objs\sdk\msvcloader.o .objs\sdk\msvcworkspaceloader.o .objs\sdk\multiselectdlg.o .objs\sdk\newfromtemplatedlg.o .objs\sdk\personalitymanager.o .objs\sdk\pipedprocess.o .objs\sdk\pluginmanager.o .objs\sdk\pluginsconfigurationdlg.o .objs\sdk\printing_types.o .objs\sdk\projectbuildtarget.o .objs\sdk\projectfileoptionsdlg.o .objs\sdk\projectlayoutloader.o .objs\sdk\projectloader.o .objs\sdk\projectmanager.o .objs\sdk\projectoptionsdlg.o .objs\sdk\projectsfilemasksdlg.o .objs\sdk\projecttemplateloader.o .objs\sdk\replacedlg.o .objs\sdk\sdk_events.o .objs\sdk\selecttargetdlg.o .objs\sdk\simplelistlog.o .objs\sdk\simpletextlog.o .objs\sdk\templatemanager.o .objs\sdk\toolsmanager.o .objs\sdk\workspaceloader.o .objs\sdk\xtra_classes.o .objs\sdk\xtra_res.o   -o devel\codeblocks.dll  -Wl,--enable-auto-image-base -Wl,--export-all-symbols -Wl,--add-stdcall-alias    -ltxml -lwxxrc -lstc  -lwxmsw
Creating library file: devel\libcodeblocks.a
.objs\sdk\manager.o(.text+0x4a3): In function `ZN7Manager7InitxrcEb':
C:/project/codeblock/codeblocks/src/sdk/manager.cpp:123: undefined reference to `_imp___ZN12wxFileSystem10AddHandlerEP19wxFileSystemHandler'
.objs\sdk\manager.o(.text+0x636): In function `ZN7Manager7LoadxrcE8wxString':
C:/project/codeblock/codeblocks/src/sdk/manager.cpp:134: undefined reference to `_imp__wxEmptyString'
.objs\sdk\manager.o(.text+0x723):C:/project/codeblock/codeblocks/src/sdk/manager.cpp:135: undefined reference to `_imp___ZplRK8wxStringS1_'
.objs\sdk\manager.o(.text+0xb79): In function `ZN7Manager11LoadToolBarEP7wxFrame8wxStringb':
C:/project/codeblock/codeblocks/src/sdk/manager.cpp:163: undefined reference to `_imp___Z14wxGetOsVersionPiS_'
.objs\sdk\manager.o(.text+0xbc5):C:/project/codeblock/codeblocks/src/sdk/manager.cpp:166: undefined reference to `_imp__wxToolBarNameStr'
.objs\sdk\manager.o(.text+0x11a0): In function `ZN7Manager15GetNotebookPageERK8wxStringlb':
C:/project/codeblock/codeblocks/src/sdk/manager.cpp:255: undefined reference to `_imp__wxDefaultSize'
.objs\sdk\manager.o(.text+0x11a6):C:/project/codeblock/codeblocks/src/sdk/manager.cpp:255: undefined reference to `_imp__wxDefaultPosition'
.objs\sdk\manager.o(.text+0x128b):C:/project/codeblock/codeblocks/src/sdk/manager.cpp:257: undefined reference to `_imp__wxPanelNameStr'
.objs\sdk\manager.o(.text+0x12ad):C:/project/codeblock/codeblocks/src/sdk/manager.cpp:257: undefined reference to `_imp__wxDefaultSize'
.objs\sdk\manager.o(.text+0x12b3):C:/project/codeblock/codeblocks/src/sdk/manager.cpp:257: undefined reference to `_imp__wxDefaultPosition'
.objs\sdk\manager.o(.text$_ZNK12wxWindowBase10HasCaptureEv+0x7): In function `ZN8wxObjectD2Ev':
C:/wxWindows-2.4.2/include/wx/object.h: undefined reference to `_imp___ZN12wxWindowBase10GetCaptureEv'
.objs\sdk\manager.o(.text$_ZNK15wxMDIChildFrame12GetClassInfoEv+0x4):C:/wxWindows-2.4.2/include/wx/object.h: undefined reference to `_imp___ZN15wxMDIChildFrame23sm_classwxMDIChildFrameE'
.objs\sdk\manager.o(.text$_Z16wxGetTranslationPKc+0x7):C:/wxWindows-2.4.2/include/wx/object.h: undefined reference to `_imp___Z11wxGetLocalev'
.objs\sdk\manager.o(.text$_ZNK7wxPanel12GetClassInfoEv+0x4):C:/wxWindows-2.4.2/include/wx/object.h: undefined reference to `_imp___ZN7wxPanel15sm_classwxPanelE'
.objs\sdk\manager.o(.text$_ZNK6wxMenu12GetClassInfoEv+0x4):C:/wxWindows-2.4.2/include/wx/object.h: undefined reference to `_imp___ZN6wxMenu14sm_classwxMenuE'
.objs\sdk\manager.o(.text$_ZN8wxString4InitEv+0x8):C:/wxWindows-2.4.2/include/wx/object.h: undefined reference to `_imp__wxEmptyString'
.objs\sdk\manager.o(.text$_ZNK12wxEvtHandler12GetClassInfoEv+0x4):C:/wxWindows-2.4.2/include/wx/object.h: undefined reference to `_imp___ZN12wxEvtHandler20sm_classwxEvtHandlerE'
.objs\sdk\manager.o(.text$_ZNK8wxWindow12GetClassInfoEv+0x4):C:/wxWindows-2.4.2/include/wx/object.h: undefined reference to `_imp___ZN8wxWindow16sm_classwxWindowE'
.objs\sdk\manager.o(.text$_ZNK8wxObject12GetClassInfoEv+0x4):C:/wxWindows-2.4.2/include/wx/object.h: undefined reference to `_imp___ZN8wxObject16sm_classwxObjectE'
.objs\sdk\manager.o(.text$_ZNK12wxWindowBase8GetTitleEv+0x10):C:/wxWindows-2.4.2/include/wx/object.h: undefined reference to `_imp__wxEmptyString'
.objs\sdk\manager.o(.text$_ZNK12wxWindowBase12GetClassInfoEv+0x4):C:/wxWindows-2.4.2/include/wx/object.h: undefined reference to `_imp___ZN12wxWindowBase20sm_classwxWindowBaseE'
.objs\sdk\manager.o(.text$_ZNK6wxFont12GetClassInfoEv+0x4):C:/wxWindows-2.4.2/include/wx/object.h: undefined reference to `_imp___ZN6wxFont14sm_classwxFontE'
.objs\sdk\manager.o(.text$_ZNK11wxGDIObject12GetClassInfoEv+0x4):C:/wxWindows-2.4.2/include/wx/object.h: undefined reference to `_imp___ZN11wxGDIObject19sm_classwxGDIObjectE'
.objs\sdk\autodetectcompilers.o(.text+0x1087): In function `Z41__static_initialization_and_destruction_0ii':
C:/project/codeblock/codeblocks/src/sdk/autodetectcompilers.cpp:9: undefined reference to `_imp___ZN8wxDialog13sm_eventTableE'
.objs\sdk\autodetectcompilers.o(.text+0x10e2):C:/project/codeblock/codeblocks/src/sdk/autodetectcompilers.cpp:9: undefined reference to `_imp__wxEVT_UPDATE_UI'
.objs\sdk\autodetectcompilers.o(.text+0x1136):C:/project/codeblock/codeblocks/src/sdk/autodetectcompilers.cpp:9: undefined reference to `_imp__wxEVT_COMMAND_BUTTON_CLICKED'
.objs\sdk\autodetectcompilers.o(.text+0x117b):C:/project/codeblock/codeblocks/src/sdk/autodetectcompilers.cpp:9: undefined reference to `_imp__wxEVT_NULL'
.objs\sdk\autodetectcompilers.o(.text$_ZNK8wxDialog12GetClassInfoEv+0x4): In function `ZNK18wxAcceleratorTableeqERKS_':
C:/wxWindows-2.4.2/include/wx/dialog.h: undefined reference to `_imp___ZN8wxDialog16sm_classwxDialogE'
.objs\sdk\autodetectcompilers.o(.text$_ZNK16wxTopLevelWindow12GetClassInfoEv+0x4):C:/wxWindows-2.4.2/include/wx/dialog.h: undefined reference to `_imp___ZN16wxTopLevelWindow24sm_classwxTopLevelWindowE'
.objs\sdk\cbeditor.o(.text+0x4e9): In function `ZN8cbEditorC2EP16wxMDIParentFrameRK8wxStringP14EditorColorSet':
C:/project/codeblock/codeblocks/src/sdk/cbeditor.cpp:140: undefined reference to `_imp___Z8wxGetCwdv'
.objs\sdk\cbeditor.o(.text+0x4fb):C:/project/codeblock/codeblocks/src/sdk/cbeditor.cpp:140: undefined reference to `_imp___ZplRK8wxStringc'
.objs\sdk\cbeditor.o(.text+0x517):C:/project/codeblock/codeblocks/src/sdk/cbeditor.cpp:140: undefined reference to `_imp___ZplRK8wxStringS1_'
.objs\sdk\cbeditor.o(.text+0xbdb): In function `ZN8cbEditorC1EP16wxMDIParentFrameRK8wxStringP14EditorColorSet':
C:/project/codeblock/codeblocks/src/sdk/cbeditor.cpp:140: undefined reference to `_imp___Z8wxGetCwdv'
.objs\sdk\cbeditor.o(.text+0xbed):C:/project/codeblock/codeblocks/src/sdk/cbeditor.cpp:140: undefined reference to `_imp___ZplRK8wxStringc'
.objs\sdk\cbeditor.o(.text+0xc09):C:/project/codeblock/codeblocks/src/sdk/cbeditor.cpp:140: undefined reference to `_imp___ZplRK8wxStringS1_'
.objs\sdk\cbeditor.o(.text+0x163a): In function `ZN8cbEditor11SetModifiedEb':
C:/project/codeblock/codeblocks/src/sdk/cbeditor.cpp:196: undefined reference to `_imp___ZplPKcRK8wxString'
.objs\sdk\cbeditor.o(.text+0x1b9e): In function `ZN8cbEditor12CreateEditorEv':
C:/project/codeblock/codeblocks/src/sdk/cbeditor.cpp:272: undefined reference to `_imp___Z7wxNewIdv'
.objs\sdk\cbeditor.o(.text+0x1bd2):C:/project/codeblock/codeblocks/src/sdk/cbeditor.cpp:275: undefined reference to `_imp__wxDefaultSize'


I have face undefined reference problem before and have some experience handling them, but this time I have no idea what had happened .. , some guidance is needed ..
thanks in advance for any help provided.[/code]

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
problem build CB from CVS using codeblock.cbp in CodeBlocks
« Reply #1 on: May 24, 2005, 10:56:15 pm »
Try searching the forum, I have posted the way *I* build wxWidgets (not necessarily the correct way ;) )

Yiannis.
Be patient!
This bug will be fixed soon...

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: problem build CB from CVS using codeblock.cbp in CodeBlo
« Reply #2 on: May 25, 2005, 06:41:54 am »
"cyberkoa" wrote:
Platform : Windows 2000 Pro
Wx version : 2.4.2
CodeBlocks version : 1.0 Final

... some guidance is needed ..
thanks in advance for any help provided.


Are you using a dll - build of wxWidgets ? build like this:
cd %WXWIN%\src\msw
mingw32-make -f makefile.g95 WXMAKINGDLL=1 FINAL=1 UNICODE=0

then you should have to link to "%WXWIN%\lib\libwxmsw242.a"
and run with "wxmsw242.dll"

HTH
--tiwag

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
problem build CB from CVS using codeblock.cbp in CodeBlocks
« Reply #3 on: May 25, 2005, 07:51:44 am »
Hey tiwag, I just made a tutorial on building wxWidgets.

http://codeblocks.sourceforge.net/wiki/index.php/Compiling_wxWidgets_2.4.2_to_develop_Code::Blocks_%28MSW%29

I'm sure it'll be helpful. However, it's missing the "setting up the include and lib directories" step at the end. Mind filling it in? Thanks!

DreadNot

  • Guest
problem build CB from CVS using codeblock.cbp in CodeBlocks
« Reply #4 on: May 25, 2005, 07:43:11 pm »
Hey rickg22,
Could you put the 2.6.0 version in as well.  I've updated mandrav's instructions to the following:
(Yet another [modified] copy in another thread)
==========
Now that wxWidgets-2.6.0 is released, work has begun to port Code::Blocks to work with it.
Officialy, Code::Blocks still uses wxWidgets-2.4.2, until all issues from porting it to wxWidgets-2.6.0 are resolved.

KNOWN ISSUES
------------
Win32: MDI client window is not behaving correctly when maximized (initially, by code)

HOWTO build wxWidgets-2.6.0 for use with Code::Blocks
------------------------------------------------------
This process requires that you have MinGW installed. MSYS is *not* needed.  You should have the latest version of MinGW (so you get "make.exe" vers. 3.80 or better).
Download and decompress the wxWidgets-2.6.0 source distribution. For the rest of this small HOWTO, C:\wx2.6.0 will be assumed to be the directory wxWidgets-2.6.0 exists in.
Open a command prompt and type the following:

cd C:\wx2.6.0\build\msw
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 UNICODE=0 VENDOR=cb
cd ..\..\contrib\build\stc
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 UNICODE=0 VENDOR=cb

If all has gone well, the necessary libs and DLLs will exist in C:\wx2.6.0\lib\gcc_dll.
Copy the DLLs somewhere in your path (c:\windows\system32 is a good choice).
Open CodeBlocks-wx2.6.0.cbp with Code::Blocks and add the following search dirs:

Compiler:
C:\wx2.6.0\include
C:\wx2.6.0\contrib\include
C:\wx2.6.0\lib\gcc_dll\msw

Linker:
C:\wx2.6.0\lib\gcc_dll

Resource compiler:
C:\wx2.6.0\include

The dirs can be added in the project properties or the compiler (global) properties.  Beware that adding to the project properties modifies the project and later CVS checkouts may not update the project file.  Therefore, open the project, change, and save the updated project under a different name after each checkout that changes the old project.

Now hit "Compile".
That's it!
Now, fix that bug that's been bothering you ;)

REMARKS:
- If all goes well and you build Code::Blocks with wx2.6.0, but when you launch it it crashes, delete all plugins and hit "Compile" again (it will only link the plugins).
- Different object files output dirs are used for building Code::Blocks with wx2.6.0, so you can have Code::Blocks work with either wxWidgets version (2.4.2 or 2.6.0) independently.

If you have any problems, post them in the Development forum at http://www.codeblocks.org/index.php?nam ... um&f=7

Yiannis.
==========

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
problem build CB from CVS using codeblock.cbp in CodeBlocks
« Reply #5 on: May 26, 2005, 06:53:43 am »
"rickg22 wrote:"
Hey tiwag, I just made a tutorial on building wxWidgets.

http://codeblocks.sourceforge.net/wiki/index.php/Compiling_wxWidgets_2.4.2_to_develop_Code::Blocks_%28MSW%29

I'm sure it'll be helpful. However, it's missing the
"setting up the include and lib directories" step at the end.
Mind filling it in? Thanks!



hi rick ,
i'll try my best, but plz give me a few days,
at the moment i have troubles with a project
at work and need 150% of my time to solve that issue.

regards, tiwag

thedeurf

  • Guest
problem build CB from CVS using codeblock.cbp in CodeBlocks
« Reply #6 on: May 26, 2005, 05:16:23 pm »
Hi everybody I tried to compile C::B and BYO's plugin.
It compiles finely but when i try to start C::B i have an memory error !
Is someone has a solution ???

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
problem build CB from CVS using codeblock.cbp in CodeBlocks
« Reply #7 on: May 26, 2005, 05:32:21 pm »
Thedeurf: Try to delete byo's plugin from the dll's under share/codeblocks/plugins.
Remember that plugins CAN alter the stability of C::B. It's better to just compile C::B and if everything works fine,
then start working on the plugin you want.

thedeurf

  • Guest
problem build CB from CVS using codeblock.cbp in CodeBlocks
« Reply #8 on: May 26, 2005, 05:34:16 pm »
noway ! it craches without plugins on win and linux !

Registers:
eax=00000000 ebx=00ad00d0 ecx=00000001 edx=00000001 esi=00aa457c edi=00000000
eip=60585b76 esp=0022f868 ebp=0022f868 iopl=0         nv up ei pl nz na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010206

Call stack:
60585B76  D:\codeblocks\src\output\codeblocks.dll:60585B76  _ZN10MessageLog12GetPageIndexEv
60526798  D:\codeblocks\src\output\codeblocks.dll:60526798  _ZN14MessageManager7LogPageE14MessageLogType
60524E77  D:\codeblocks\src\output\codeblocks.dll:60524E77  _ZN14MessageManagerC1EP8wxWindow
6052306F  D:\codeblocks\src\output\codeblocks.dll:6052306F  _ZN14MessageManager3GetEP8wxWindow
605222CB  D:\codeblocks\src\output\codeblocks.dll:605222CB  _ZN7Manager17GetMessageManagerEv
605214A6  D:\codeblocks\src\output\codeblocks.dll:605214A6  _ZN7Manager3GetEP16wxMDIParentFrameP10wxNotebook
0040D3F2  D:\codeblocks\src\output\codeblocks.exe:0040D3F2
0040BCD3  D:\codeblocks\src\output\codeblocks.exe:0040BCD3
0041D5B2  D:\codeblocks\src\output\codeblocks.exe:0041D5B2
0041DB9A  D:\codeblocks\src\output\codeblocks.exe:0041DB9A
004303BC  D:\codeblocks\src\output\codeblocks.exe:004303BC
6437FA97  C:\WINDOWS\system32\wxmsw26_gcc_cb.dll:6437FA97  _Z14wxEntryCleanupv
643E5B14  C:\WINDOWS\system32\wxmsw26_gcc_cb.dll:643E5B14  _Z7wxEntryP11HINSTANCE__S0_Pci
0041C133  D:\codeblocks\src\output\codeblocks.exe:0041C133
0042E91B  D:\codeblocks\src\output\codeblocks.exe:0042E91B
0040122D  D:\codeblocks\src\output\codeblocks.exe:0040122D
00401258  D:\codeblocks\src\output\codeblocks.exe:00401258
7C816D4F  C:\WINDOWS\system32\kernel32.dll:7C816D4F  RegisterWaitForInputIdle

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
problem build CB from CVS using codeblock.cbp in CodeBlocks
« Reply #9 on: May 26, 2005, 05:57:14 pm »
Thedeurf: I'm at work right now (and unfortunately i don't think the stack info will work).
Anyway I posted a README on the "CVS Issues" forum. If you keep having problems after following it, please post.

DreadNot

  • Guest
problem build CB from CVS using codeblock.cbp in CodeBlocks
« Reply #10 on: May 26, 2005, 08:24:17 pm »
See one of my other post.  I had the same problem and Yannis said he's working on it.
Instead on running it, debug it with no breakpoints.  It should run.  Close it, then run it.
It should work.

Or is this some other problem?

Offline cyberkoa

  • Plugin developer
  • Almost regular
  • ****
  • Posts: 145
    • http://
Re: problem build CB from CVS using codeblock.cbp in CodeBlo
« Reply #11 on: May 26, 2005, 08:28:57 pm »
Quote from: tiwag
"cyberkoa" wrote:
Platform : Windows 2000 Pro
Wx version : 2.4.2
CodeBlocks version : 1.0 Final

... some guidance is needed ..
thanks in advance for any help provided.


Are you using a dll - build of wxWidgets ? build like this:
cd %WXWIN%\src\msw
mingw32-make -f makefile.g95 WXMAKINGDLL=1 FINAL=1 UNICODE=0

then you should have to link to "%WXWIN%\lib\libwxmsw242.a"
and run with "wxmsw242.dll"

HTH
--tiwag


Thanks, I have followed the steps in wiki , and managed to compile CB successfully.

However, I try to run the codeblocks.exe , it show the memory error like thedeurf's problem (I think) .
Yesterday  I did the following steps  2 times , clear & reinstall MingW, clear & reinstall wxwidgets , recompile wxwidgets , clear CVS and redownload , compile CB , it still give the same error in my Laptop.

Today , I tried it in my company PC .
1. After compiled CB , I try to run at the output folder , it give me error "cannot find wxmsw422.dll", so I copy the file to WINNT\system32 , run again.  
2. Another msg , "cannot find resources.zip in ...", so I copy the files and folders from the CB distribution to the development folder , and it success to show the splash screen , but give the memory error like at my Laptop.

3.  I try to run the newly compiled CB inside CB , it give the same problem .

4. Then I try to debug , the miracle appear , it run without problem, it just that when I created new project , no template shows.

5. I try to run from explorer again , this time it works like in debug mode.


I come across this in one of the thread in this forum, according to madrav , it is due to the "working path"  , when run in debug mode , it will correctly set the working path, therefore, it can run properly.

Still exploding to compile in my Laptop because I use Laptop at my home and I only have time to really working on the development at my home.

Offline cyberkoa

  • Plugin developer
  • Almost regular
  • ****
  • Posts: 145
    • http://
problem build CB from CVS using codeblock.cbp in CodeBlocks
« Reply #12 on: May 26, 2005, 08:30:43 pm »
Quote from: DreadNot
See one of my other post.  I had the same problem and Yannis said he's working on it.
Instead on running it, debug it with no breakpoints.  It should run.  Close it, then run it.
It should work.

Or is this some other problem?

Yup , I think the thread that I came across is your post..

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
problem build CB from CVS using codeblock.cbp in CodeBlocks
« Reply #13 on: May 26, 2005, 09:21:37 pm »
I don't think it's the same error but anyway...
I hope you are running update.bat after building Code::Blocks, aren't you?

Yiannis.
Be patient!
This bug will be fixed soon...

Offline cyberkoa

  • Plugin developer
  • Almost regular
  • ****
  • Posts: 145
    • http://
problem build CB from CVS using codeblock.cbp in CodeBlocks
« Reply #14 on: May 26, 2005, 09:27:32 pm »
Quote from: mandrav
I don't think it's the same error but anyway...
I hope you are running update.bat after building Code::Blocks, aren't you?

Yiannis.


Ooops .. seems like I didn't run the update.bat .. will try later .. thanks.

Offline cyberkoa

  • Plugin developer
  • Almost regular
  • ****
  • Posts: 145
    • http://
problem build CB from CVS using codeblock.cbp in CodeBlocks
« Reply #15 on: May 27, 2005, 07:07:14 am »
After a few time of testings, I manage to get C::B compiled and run, however, to let the C::B run properly , a trick need to be done.

Platform : Windows 2000 Pro
Wx version : 2.4.2
CodeBlocks version : 1.0 Final
In fact ,  I have tested in company's PC and Laptop. At company , I use the option 1 , and at home I use options 2 (set the path), here I only mention the options since both need a tweak after compile

1. To make sure no object files that left by the previous compilation  , I uninstall MingGW and wxwidgets-2.4.2 , and delete both folder after uninstallation. I deleted all the files that downloaded from CVS, redownload again.

2. I install MingW rc3.2 from www.mingw.org

3. I install wxwidgets-2.4.2

4. I compile wxwidgets under MSYS(which I have installed previously)

5. After this , I compile stc followed by xrc.

6. I run CB final-1.0 , and open the project file CodeBlocks.cbp in CVS under codeblocks/src .

7. I add the following information (Menu "Project" > Build Option)

    <WXWIN> is your wxwidgets folder
     Directory >Compiler
     ==============
     <WXWIN>\lib\mswdll
     <WXWIN>\include
     <WXWIN>\contrib\include

     Directory > Linker
     ==============
     sdk\tinyxml <----- default
     <WXWIN>\lib
     <WXWIN>\contrib\lib

     Directory > Resources Compiler
     ==============
     <WXWIN>\include    

     Custom Variable
     ==============
     WX_VER=242

8. Click the compile icon

9. Compilation success .

10 . Download zip.exe (used by update.bat) from www.info-zip.org ,  and extract to C:\MSYS\1.0\bin (any folder that in the path will do)

11. run update.bat in CVS - under codeblocks/src
 

Here is the strange thing ..

I run codeblocks.exe from CVS 's output  folder , message show "wxmswdll is not is <%Path%> etc...", I copy wxmswdll to <WINNT>\system


I run codeblocks.exe from CVS 's output  folder again , after the splash screen , prompt the memory error problem.

I run the project from the C::B , also the memory error problem.

I debug CB project in CB , by click the menu "Debug " > Debug , it start the CB properly.


I close the CB that run in debug mode. I run again the CB in output folder , the memory problem disappear!
I run the project in CB again , NO memory error !


Above are the steps that I conclude after 7-8 times of recompilation of wxwidgets and CB in 1 PC & 1 Laptop.