+ 1
program wont run correctly
when i run the first c++ program i dont get hello world, i get this Last login: Sun Jan 15 12:09:44 on ttys003 Coles-MBP:~ myname$ /Users/myname/Downloads/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/myname/Documents/solo learn/SoloLearn/bin/Debug/SoloLearn sh: /Users/myname/Documents/solo: No such file or directory Process returned 127 (0x7F) execution time : 0.016 s Press ENTER to continue.
9 Answers
+ 9
What IDE are you using?
+ 9
Or in other words, in which program are you typing your code?
+ 8
Post the code and we'll see
0
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!";
return 0;
}
0
literally just started trying to learn this stuff so i am totally lost
0
CodeBlocks
0
Did this issue get resolved? I am getting the same error and am a beginner too. Using a Mac and Codeblocks IDE
0
What was the resolution for this issue? I am new to coding and am having the same issue on Mac. I followed the instructions in SoloLearn, downloaded CodeBlocks and ran the code. Got the same error. Have no idea what is wrong. Appreciate any help.
0
Looks like CodeBlocks just wonât work on Mac, but you can use Xcode instead. Xcode is in the App Store and is free for Mac users. You do need to login with your Apple ID and creat a developer account. Good luck!