Code::Blocks Forums

User forums => Help => Topic started by: dtrill on July 18, 2024, 01:36:48 am

Title: After installing codeblocks-20.03mingw-setup I can't build any c/c++ code
Post by: dtrill on July 18, 2024, 01:36:48 am
I upgraded code blocks today using 20.03mingw-setup.exe. Now, I cannot build any c/c++ code. Build error ".../x86-64-w64-mingw/bin/id.exe: cannot find -lsprite & -lbgi: No such file of directory". However, I can compile the code using g++ on the Windows command-line. Thank you for your assistance.
Title: Re: After installing codeblocks-20.03mingw-setup I can't build any c/c++ code
Post by: stahta01 on July 18, 2024, 04:14:10 am
[You likely need to] remove the global compiler options you added in the past.
Edit: Add FAQ link
https://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 (https://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)

Tim S.
Title: Re: After installing codeblocks-20.03mingw-setup I can't build any c/c++ code
Post by: Miguel Gimenez on July 18, 2024, 11:51:42 am
Probably you added libsprite.a and libbgi.a to the old MinGW lib folder, and the new MinGW is looking in it's own lib folder so it does not find them. When compiling from command line you are using the old MinGW because it is in the path.