Setting up Code::Blocks for use with MinGW-64 īuilding 32 bit and 64 bit wxWidgets libraries for use with Code::Blocks 16.Step 4: Make sure that the selected compiler is the one we just installed. You should now be able to build 32-bit Debug and Release targets, and 64 bit Debug64 and Release64 targets, by just selecting the appropriate target and building. Resource compiler: C:\wxWidgets-3.0.2\lib\gcc_lib\mswud changes to C:\wxWidgets-3.0.2\lib\gcc_lib64\mswud Linker: C:\wxWidgets-3.0.2\lib\gcc_lib changes to C:\wxWidgets-3.0.2\lib\gcc_lib64 for a debug target:Ĭompiler: C:\wxWidgets-3.0.2\lib\gcc_lib\mswud changes to C:\wxWidgets-3.0.2\lib\gcc_lib64\mswud Select the Search directories tab, and change the directory or directories to point to the 64-bit version, repeating this for each sub-tab under the Search directories tab, e.g. Select the new target, and change the compiler to the 64-bit compiler e.g. Select the Project settings tab of the Project/targets options dialog, and click the "Project's build options" button. If you created a new project for 64 bit builds only, specifying the new 64 bit compiler, you don't have to change these, just use the default obj\Debug and obj\Release. Also change the output filename to point to a matching new objects output directory, e.g. obj\Debug64\ (Code::Blocks will create this directory in the build, so you won't necessarily be able to browse to it). Debug64 and Release64.įor each new target, rename the "Objects output dir" to point to a different subdirectory, e.g. Right-click on the project in the Projects tab of the Manager tree, select Properties to open the Project/targets options dialog, then select the Build targets tab, and for each existing target listed on the left column, select it and click the Duplicate button - give the new targets suitable names, e.g. To add a 64 bit build to your existing project using your new compiler setup, it's most convenient to start from working 32-bit targets to base them on (e.g. You can specify the new compiler during creation of a project in the new project wizard, but if you want both 32 bit and 64 bit builds with different compilers it might be better to start by specifying the default 32 bit compiler and adding the extra 64 bit builds to your project afterwards. This new compiler setup can now be used in any new or existing projects. Now go back to the Settings -> Compiler dialog, select the new compiler under "Selected compiler", select the Toolchain executables and Program Files tabs, and change the Debugger selection to the new configuration e.g. Other settings (Debugger Type: GDB, etc.) can stay the same as for the Default configuration (unless you have some specific requirement, and you can always change them later). Under Executable path, select the corresponding gdb debugger for mingw64, e.g. In the popup window, enter the name for the new configuration - e.g. C:\tdm-gcc-64-5.1.0-2Įnter the following items, or click the Browse button beside each Program Files option, and browse from the compiler’s installation directory into the \bin folder, and select each item, as follows:ĭebugger: Set after configuring debugger - see belowĬlick on main menu Settings -> Debugger., select GDB/CDB debgger in the tree on the left, underneath which you should see the Default setting for the existing 32 bit debugger, and then click the Create Config button. Modify the compiler’s installation directory to the directory where you installed MinGW64, e.g. You will need to update the toolchain for the compiler under the tab Toolchain executables. With the new compiler selected, review the compiler settings. "tdm64-gcc 64-bit Compiler" and click OK. "GNU GCC Compiler" (or the nearest equivalent if you are running a nightly build with a custom compiler), click Copy, then in the "Add new compiler" dialog enter the name for the new compiler, e.g. Under Selected Compiler, select your existing built-in compiler i.e. In 2015, Gabriel Aul, head of the Windows Insider Program, reported that "92.8% of systems with a BIOS age Compiler to open the Global compiler settings dialog.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |