Okay, so I'm taking an Intro to C class and I cannot get my Code Blocks compiler to work. I've installed Command Line tools for Xcode and I also have Xcode. However, the installation for the OSX 10.7.5 software update won't seem to work. I've been using both CodeBlocks and Xcode on Mac for a couple of years.
Macworld is the annual get together for the Apple and Mac faithful held every year in San Francisco. More than your typical technology conference, it has a long history of being THE event for Apple users (and fans), who come in from literally every corner world. About xTuple — Open source ERP+CRM+Web Portal Award-winning xTuple is the leading commercial open source suite of enterprise resource planning (ERP) software with integrated CRM for Manufacturing and Distribution companies who need control over operations and profitability.
Xcode is great for developing Mac applications. CodeBlocks is great if you need a cross-platform IDE. I'll outline the steps I used to get it working (fairly simple). Get CodeBlocks version 12.11 Don't go here: (note: 13.12 is known to have a problem on Mac). Instead, go here: Click on MacOS and get the.dmg (unless you're more comfortable with.zip). Read the comments below the download options. After download and installation, drag CodeBlocks.app into your /Applications folder.
Start CodeBlocks and disable a couple of plugins that cause problems. Click Menu-Plugins, then Plugin Manager.
The plugins are alphabetized. Find the following and disable them. Command completion keyboard shortcuts Examining your screenshot a little closer, I suspect you may not have selected Console Application. You can check by clicking Menu-Project-Properties, Build targets. Find 'Type:' in the 'Selected build target options' section. It should say 'Console application'. If it doesn't, change it and click 'OK'.
I don't recall having to do anything else. Create a project (Hello world) and run. Please report whether this solves your problem - thanks.
Google search results tell me that 'Codeblocks is a cross-platform IDE built around wxWidgets, designed to be extensible and configurable. Runs on Windows and Linux' Why on earth would you ever use such a thing? Is this a requirement for the class? You don't want it. If this is a requirement for the class, you might be able to get Codeblocks from MacPorts or something.
You could build it yourself, but you would have to learn a bit about Xcode and other stuff first - the catch-22 of open source. But to reiterate, you don't want to use Codeblocks for anything. It is a waste of your time. If it is required for this class, drop the class and find another one. I've been using both CodeBlocks and Xcode on Mac for a couple of years. Xcode is great for developing Mac applications.
CodeBlocks is great if you need a cross-platform IDE. I'll outline the steps I used to get it working (fairly simple).
Xtuple Open Source
Get CodeBlocks version 12.11 Don't go here: (note: 13.12 is known to have a problem on Mac). Instead, go here: Click on MacOS and get the.dmg (unless you're more comfortable with.zip). Read the comments below the download options.
After download and installation, drag CodeBlocks.app into your /Applications folder. Start CodeBlocks and disable a couple of plugins that cause problems. Click Menu-Plugins, then Plugin Manager. The plugins are alphabetized. Find the following and disable them. Command completion keyboard shortcuts Examining your screenshot a little closer, I suspect you may not have selected Console Application. You can check by clicking Menu-Project-Properties, Build targets.
Find 'Type:' in the 'Selected build target options' section. It should say 'Console application'. If it doesn't, change it and click 'OK'. I don't recall having to do anything else.
Create a project (Hello world) and run. Please report whether this solves your problem - thanks. Hmm, it's possible that your keybindings (on your Mac) have been previously set. Open System Preferences (click the Apple symbol at top left of your screen). Click the keyboard icon, then the Shortcuts tab. There is a Restore Defaults button.
You can look through the various categories but Keyboard seems the most relevant. Perhaps clicking Restore Defaults will solve the problem. Check again that you have actually disabled the two mis-behaving plugins. Are you using a US keyboard? Just a thought but some keyboards have different keycode mappings. You can search the internet for ways to remap the keyboard.
Copy/paste - this seems a bit extreme but it can get you through in a pinch. Find an example of square brackets on the internet and copy them into a handy place (like in a comment at the top of your program). Then, whenever you need them, copy them into place. Search the internet (stackexchange, for example) for others who are reporting a similar problem with the Code::Blocks IDE for C programming. This is not the same problem as the original poster reported.
I realize that this is an old post but it may help others. I just completely uninstalled and re-installed CodeBlocks-13.12 for Mac. I created a New Project from the File menu and clicked on the Run button. It compiled fine but no console appeared, just like the Original Poster described! I launched the Terminal (/Applications/Utilities/Terminal) just to make sure it worked.
That's all I did. Thereafter, CodeBlocks worked fine. So, if you've never launched the Terminal, you apparently need to launch it once after installing CodeBlocks for CodeBlocks to work properly. There might be an an explanation but it seems inconvenient that it doesn't work the first time.
(Also, you need to disable two user-contributed plugins: keyboard shortcuts and code completion.) Hope this helps someone. Apple Footer. This site contains user submitted content, comments and opinions and is for informational purposes only. Apple may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Apple can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the.