How do I compile for 64bit using G++ w/ CodeBlocks?
问题 I'm currently working on creating a shared lib DLL but I need to load it at runtime in a 64 bit environment so it currently doesn't work. How can I compile 64bit dlls from code blocks using g++ ? I've tried compiler options like -m64 but none seem to work. 回答1: To compile 64-bit programs on windows using g++, you need MinGW64. I believe that Code::Blocks comes with MinGW32. To install it onto Code::Blocks, extract the zip file to a folder without spaces, such as C:\MinGW64 Open Code::Blocks