+ 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.

15th Jan 2017, 5:41 PM
my name
my name - avatar
9 ответов
+ 9
What IDE are you using?
15th Jan 2017, 6:12 PM
Filip
Filip - avatar
+ 9
Or in other words, in which program are you typing your code?
15th Jan 2017, 6:13 PM
Filip
Filip - avatar
+ 8
Post the code and we'll see
15th Jan 2017, 6:06 PM
Filip
Filip - avatar
0
#include <iostream> using namespace std; int main() { cout << "Hello world!"; return 0; }
15th Jan 2017, 6:10 PM
my name
my name - avatar
0
literally just started trying to learn this stuff so i am totally lost
15th Jan 2017, 6:11 PM
my name
my name - avatar
0
CodeBlocks
15th Jan 2017, 6:14 PM
my name
my name - avatar
0
Did this issue get resolved? I am getting the same error and am a beginner too. Using a Mac and Codeblocks IDE
12th May 2017, 3:59 PM
Ananta Kr. Roy
Ananta Kr. Roy - avatar
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.
27th Jan 2018, 7:36 PM
Patrick
Patrick - avatar
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!
31st Jan 2018, 1:04 AM
Patrick
Patrick - avatar