You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Code Blocks Won't Compile or Quit

When I try to compile a simple program it doesn't work and says: No such file or directory. I followed other instructions about which settings to change to stop the program from crashing which worked and I have Xcode downloaded. But the terminal won't run the program. And when I try to quit the application stops responding and I have to force quit. Help.

MacBook Pro 13″, macOS 12.0

Posted on Jan 29, 2022 6:01 PM

Reply
9 replies

Jan 31, 2022 8:15 AM in response to villainex

Intel Core i5 can run Microsoft Windows as a guest in Parallels or otherwise, or via Boot Camp. Slowly. I’d want 16 GB memory and more would be preferable for a hypervisor and development.


Or somewhat less resource-intensive… Install Boot Camp.


https://support.apple.com/boot-camp


Acquire and install Microsoft Windows.


Microsoft has available 90-day test images.


https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/


Windows hosting and Linux hosting is widely available.


https://www.techradar.com/news/best-windows-hosting


AWS has a free tier available for a year:


https://aws.amazon.com/windows/?blog-posts-content-windows.sort-by=item.additionalFields.createdDate&blog-posts-content-windows.sort-order=desc


(Do be careful to shut down your hosted guests, just as soon as you’re done.)


A computer science class using Code::Blocks? For what seems an intro course (and C, C++, and Fortran are all odd choices for an intro course), I’d tend to expect the instructor provide a pre-built guest image (prolly Linux) and the steps to install and use same. Saves on the arriving questions for the instructor. This seems a “toss’m into the deep end” class. But then I’ve been out of school for a while. Ah, well.

Jan 30, 2022 2:41 PM in response to villainex

villainex wrote:

ok. I will. Would downloading Parallels help so I can download the Windows version instead of trying to use the Mac version? I need this for a computer science class.


If you have an Intel processor Mac, then Windows or Linux will work as a hypervisor guest. If you have an Apple silicon Mac with the M1 processor then your choices are more limited, and you’ll be on an early version of Linux either booted native or running as a guest, or a beta or prototype version of Windows available to only to Windows insiders.


It’s also possible to boot and run and remotely access Windows or Linux hosted on a cloud service.


If you’re willing to dig into it yourself, and are ro be using and learning C or C++, using Xcode and also using the command line tools can work for learning C or C++ programming. For Fortran, not so much.



Code Blocks Won't Compile or Quit

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.