This is a configuration issiue and you face it also in msvc if you use a third party library... In msvc it is even more complicated (at least for me).
Can I use mingw64 on Windows 10 to compile mbedTLS libraries?You have to ask the guys on mbedTLS to answer this question
My Code::Blocks is 32-bits thoughAnd? There are also 64bit releases out there
Can I create two compilers settings in Code::Blocks?You can create unlimited compiler settings in codeblocks
where can I learn more about 3rd party libraries and the tips for beginners?Youtube, http://wiki.codeblocks.org/index.php/FAQ-Compiling_(general)#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F