Once you have the compiler set up, compile your DLL with the same settings, only using the 64 bit compiler. Linker for dynamic libs: g++.exe ( g++64.exe if you used my link)ĭebugger: There isn't one for MinGW64 yet, clear this and leave it blank
Again Note we are using 32-bit binaries even though the system is 64-bit because the compiler is 32-bit. Make a new Code::Blocks Project: right click on your project and choose build options: You can also change the global compiler settings from the menu bar at the top right. Set each option as follows:Ĭompiler's installation directory: The path you specified( C:\MinGW64 )Ĭ++ compiler: g++.exe (If you used my link above it will be g++64.exe, thanks Super Cat for reminding me) Step 7: Configuring Code::Blocks with OpenCV.
Then on the Toolchain executables tab, click the Browse button beside each option and browse to the folder you copied MinGW64 to ( C:\MinGW64 ) and go into the bin folder. This setting should generally work in all computer: 64-bit Windows, 32-bit CodeBlocks and 32-bit. So, before proceeding with the setup of GLFW in CodeBlocks, make sure you are using Code::Blocks and GLFW of same bit. La version actuelle de Code:Blocks est la 20.03, elle est parue le. This problem is basically due to installation of 32-bit version of Code::Blocks and 64-bit version of GLFW on a 64-bit windows 7. In the next box, type something like "MinGW 64-bit Compiler" and click OK. Ce puissant IDE est gratuit (open source), personnalisable et compatible Windows, Mac et Linux. Open Code::Blocks and click on Settings -> Compiler and debugger. I can not find in code blocks where the '-targetx8664-pc-linux-gnu' is set so I can change it to '-targeti386-pc-linux-gnu'. Now I want to compile it as a 32bit application. My executable is 64 bit which is fine considering I am running 64 bit.
To install it onto Code::Blocks, extract the zip file to a folder without spaces, such as C:\MinGW64 I am using ubuntu 64 bit with codeblocks 8.02. I believe that Code::Blocks comes with MinGW32.
In this blog, it shows how to add MinGW-w64 (GNU for Windows) to code blog and use it to compile. To compile 64-bit programs on windows using g++, you need MinGW64. One of the great benefits of using Code::Block is that it is super easy to switch between compilers.