User forums > Using Code::Blocks

WxWidgets and Code:blocks beginner-Do I build 64 or 32 bit?

(1/3) > >>

djsb:
Hi,
I'm new to both code:blocks AND wxWidgets. I'm using Windows 10 64 bit. I have downloaded and installed both wxMSW-3.0.4-Setup.exe AND codeblocks-17.12mingw-setup.exe. I will to begin with be compiling trivial Wxwidgets example code and it does not matter if it is 32 or 64 bit (as long as it will run on my 64 bit windows 10 machine that is). Later I would like to contribute to open source projects that have both 32 and 64 bit builds (I use 64 bit when I can).
Is it better for me to start from a 32 bit build environment or use 64 bit from the start. I want to keep things simple to start with.
I have NOT compiled WxWidgets yet as I thought it best to seek advice on here first. Hope someone can help. Thanks.

David.

oBFusCATed:
Start with 32bit, if you want to have no problems with the debugger. Currently it is not possible to pause/interrupt the debugger if you're mixing 32 and 64 bit CodeBlocks, gdb and application executables.

Also you'll probably want to switch to some newer compiler than the one installed with codeblocks. Our project would probably move to the compilers provided by the mingw-w64 project.

djsb:
Thank you for your reply.
I also have a separate directory (C:\MinGW and C:\MinGW\Bin in my path). Is it best to remove the existing MinGW installation and replace the PATH with C:\Program Files (x86)\CodeBlocks\MinGW\bin?

djsb:
Ok. I've removed the existing MinGW directory and I'm just using the MinGW that was included in the download.
I get this error

--- Code: ---Microsoft Windows [Version 10.0.17763.437]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd C:\wxWidgets-3.0.4\build\msw

C:\wxWidgets-3.0.4\build\msw>mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-fno-keep-inline-dllexport
if not exist gcc_mswudll mkdir gcc_mswudll
if not exist ..\..\lib\gcc_dll mkdir ..\..\lib\gcc_dll
if not exist ..\..\lib\gcc_dll\mswu mkdir ..\..\lib\gcc_dll\mswu
if not exist ..\..\lib\gcc_dll\mswu\wx mkdir ..\..\lib\gcc_dll\mswu\wx
if not exist ..\..\lib\gcc_dll\mswu\wx\setup.h copy ..\..\include\wx\msw\setup.h ..\..\lib\gcc_dll\mswu\wx\setup.h
if not exist ..\..\lib\gcc_dll\mswu\wx\msw mkdir ..\..\lib\gcc_dll\mswu\wx\msw
gcc -E "..\..\include\wx\msw\genrcdefs.h" > "..\..\lib\gcc_dll\mswu\wx\msw\rcdefs.h"
gcc -c -o gcc_mswudll\wxregex_regcomp.o  -O2 -mthreads  -DHAVE_W32API_H -DNDEBUG -I..\..\include -I..\..\lib\gcc_dll\mswu -D__WXMSW__  -D_UNICODE   -MTgcc_mswudll\wxregex_regcomp.o -MFgcc_mswudll\wxregex_regcomp.o.d -MD -MP ../../src/regex/regcomp.c
In file included from ..\..\include/wx/defs.h:27:0,
                 from ../../src/regex/regcustom.h:39,
                 from ../../src/regex/regguts.h:38,
                 from ../../src/regex/regcomp.c:33:
..\..\include/wx/platform.h:183:22: fatal error: wx/setup.h: No such file or directory
compilation terminated.
makefile.gcc:5702: recipe for target 'gcc_mswudll\wxregex_regcomp.o' failed
mingw32-make: *** [gcc_mswudll\wxregex_regcomp.o] Error 1

C:\wxWidgets-3.0.4\build\msw>

--- End code ---

Any clues as to what is causing the error? Thanks.


PS: I'm using this guide

http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef

BlueHazzard:
I think this is an error in the makefile.

Try to rerun the make command with the same parameters. Make a make clean before you do it...

Navigation

[0] Message Index

[#] Next page

Go to full version