I downloaded wx 2.6.3, and I set the global variable wx to point to that directory and then compiled the project and along the way I get the error message
ld.exe:: cannot find -lwxmsw26u
I will addon that I now understand that I have to compile the library for wxWidgets before I can compile codeblocks, now the problem I am having is compiling wxWidgets library according to the link you sent me
After Researching and if I understand correctly, MingW cannot build the library for wxWidgets, only borland or vc++ can
NO. :shock: MinGW builds wx just fine. It is the official way of building C::B.... I have no clue where you read that.... :shock:
EDIT:
Here is what I do. I have MinGW.
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release
That is all now wait for MinGW to finish compiling wx. Then compile C::B. :D HTH
I miss read the instructions...this is the output I am getting
C:\Program Files\wxWidgets-2.6.3\build\msw>mingw32-make -f makefile.gcc BUILD=re
lease MONOLITHIC=1 SHARED=0 UNICODE=1
if not exist gcc_mswu mkdir gcc_mswu
if not exist ..\..\lib\gcc_lib mkdir ..\..\lib\gcc_lib
if not exist ..\..\lib\gcc_lib\mswu mkdir ..\..\lib\gcc_lib\mswu
if not exist ..\..\lib\gcc_lib\mswu\wx mkdir ..\..\lib\gcc_lib\mswu\wx
if not exist ..\..\lib\gcc_lib\mswu\wx\setup.h copy ..\..\include\wx\msw\setup.h
..\..\lib\gcc_lib\mswu\wx\setup.h
1 file(s) copied.
if not exist ..\..\lib\gcc_lib\mswu\wx\msw mkdir ..\..\lib\gcc_lib\mswu\wx\msw
gcc -E "..\..\include\wx\msw\genrcdefs.h" > "..\..\lib\gcc_lib\mswu\wx\msw\rcdef
s.h"
gcc -c -o gcc_mswu\wxregex_regcomp.o -O2 -mthreads -DHAVE_W32API_H -I..\..\inc
lude -I..\..\lib\gcc_lib\mswu -D__WXMSW__ -D_UNICODE -MTgcc_mswu\wxregex_regco
mp.o -MFgcc_mswu\wxregex_regcomp.o.d -MD ../../src/regex/regcomp.c
In file included from ../../src/regex/regcustom.h:39,
from ../../src/regex/regguts.h:38,
from ../../src/regex/regcomp.c:33:
../../include/wx/defs.h:210: error: syntax error before "typedef"
mingw32-make: *** [gcc_mswu\wxregex_regcomp.o] Error 1
Ok I fixed the Wiki. someone changed the build steps (doesn't matter too much, but it wasn't correct). :P
Use this
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release
EDIT:
You need at least GCC 3.4.2 to compile I belive.... I have 3.4.4 which comes with RC2. I think you have an older version of GCC.
See this.
http://wiki.codeblocks.org/index.php?title=MinGW_installation
This is the version output
C:\Program Files\wxWidgets-2.6.3\build\msw>mingw32-make -v
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.