News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

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

Started by dtrill, July 18, 2024, 01:36:48 AM

Previous topic - Next topic

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

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

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.