+ 1
Error with CodeBlocks on Mac OS X
I just got SoloLearn to learn c++ and when I try and run the Hello World program on my Mac OS X with code blocks, it runs but in the terminal it doesn’t say “hello world” but says that it cannot find a file or directory. Does anyone know how tongue this??
3 Respostas
+ 8
Hi Will... This could be any number of things.
Have you checked to see if the compiled binary has execute permissions on the file itself? If it does not, you can try something like:
chmod +x some_app_filename
Otherwise, provide the following details:
- How are you compiling the code?
- How are you running the code once compile?
If using terminal, include your command lines for compiling and for executing.
UPDATE:
If compiling via terminal, be sure to exclude the -c to compile as an executable instead of an object file.
+ 6
Hello @Will Tenney, have you checked these sites out? anyways, I hope you can find the answer in either one:
http://wiki.codeblocks.org/index.php/Common_problems_and_solutions
https://discussions.apple.com/thread/2253886?start=0&tstart=0
Hth, cmiiw