User forums > Help

After installing codeblocks-20.03mingw-setup I can't build any c/c++ code

(1/1)

dtrill:
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.

stahta01:
[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

Tim S.

Miguel Gimenez:
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.

Navigation

[0] Message Index

Go to full version