The mother site of CodeBlocks is How to Install CodeBlocks 13.12 Step 1: Download CodeBlocks is surprisingly versatile, and in my opinion, much better than the Visual Studio suite. It supports interactive debugging (via GNU GDB or MS CDB). It supports many compilers, such as GNU GCC (MinGW and Cygwin) and MS Visual C++. When I find that location, I'll post a solution here.CodeBlocks is an open-source, cross-platform (Windows, Linux, MacOS), and free C/C++ IDE. I'm unaware of how to disable this warning, although I'm sure a switch that does the trick is hidden somewhere in Code::Blocks, where the linker options are set. This file format variant is no longer supported. Here's the man page for the ld (linker) command regarding the -s option: -s Completely strip the output, including removing the symbol In fact, there's nothing wrong with the code or the program the message is just a warning because an old option was set. Because it's a warning, the code does compile. I've seen this message appear primarily on Macintosh installations. Warning: option -s is obsolete and being ignored You may see a linker warning on some Code::Blocks installations. What is the -s Option and Why is It Obsolete? Closing that open output window (the command prompt in Windows or a terminal window for Unix/Linux) fixes the problem. This problem occurs because you've already ran a program, but failed to close the output window.
If your program looks fine, compiles, but it doesn't run or appear in the output window, confirm that an output window isn't already open. The video (below) visually describes how to address this issue. Click the OK button to set the location.Paste the copied address into the Compiler's Installation Directory text box.Choose Settings > Compiler to display the Compiler Settings dialog box.Press Ctrl+Shift+N to start a new, empty file.Right-click in the address bar and choose the command Copy Address.Navigate to the compiler's bin folder, such as C:\Program Files (x86)\CodeBlocks\MinGW\bin.Open a Windows Explorer window (shortcut: Win+E).Here are the steps to remedy the situation: Specifically, Code::Blocks may be unable to find the proper directory for the compiler. If you're having trouble getting Code::Blocks to compile, you may have an issue with its installation.
Code::Blocks Won't Compile or Loses the Source Code Choose LLVM Clang Compiler from the menu button.īe aware that the Mac version of Code::Blocks has issues! If possible, I recommend using Xcode instead. In Code::Blocks, choose Settings > Compiler.
In Code::Blocks you need to set clang as the compiler of choice.
Download a clang release that matches your version of OS X, or the binaries for Mac OS X for an older version of clang. If you don't have Xcode, or Apple won't let you download Xcode because your OS X is too old, then you can obtain the clang compiler directly. That's okay the version I wrote about in the book was rather unreliable when it came to displaying the man pages. The Man Page viewer may not be found in some releases of Code::Blocks. This is more of an issue with Code::Blocks than my book, but if you send me any discrepancies I'll happily place them on the book's Errata page. Newer releases of Code::Blocks may change some of the locations of key commands referenced in the book. The "Unable to find the compiler" conundrum.Code::Blocks can't find your Mac compiler.
Update to Code::Blocks command locations.Solve Some Code::Blocks Problems Contents