


under "Program files" setup the following for the executables:.

under "Additional path" add \usr\X11R6\bin (if required).point the path to your Cygwin installation folder.Select the "GNU GCC Compiler", click the "Copy Button".Make a copy of the GNU GCC compiler as follows:.In Code::Blocks under Settings->Compiler and debugger do the following: This article describes the steps required to attach the GNU Cygwin Compiler suite. Once you have the compiler set up, compile your DLL with the same settings, only using the 64 bit compiler.Make sure that you have installed Cygwin at least with the GCC, G++ and GDB packages. 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 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) 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. In the next box, type something like "MinGW 64-bit Compiler" and click OK. Open Code::Blocks and click on Settings -> Compiler and debugger. To install it onto Code::Blocks, extract the zip file to a folder without spaces, such as C:\MinGW64 I believe that Code::Blocks comes with MinGW32. To compile 64-bit programs on windows using g++, you need MinGW64.
