

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.

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
