User forums > Using Code::Blocks

Issue running after build

(1/2) > >>

progr@mm1nG3niu5:
Hey everyone,
I want to make sure I'm providing enough detail, so please bare with the length...


I am using Mac OS X 10.6.6

I am using Code Block 10.05

I am using the simplest code known to everyone and it will not even run that (well, I think it's running, but it will not show the execution of 'hello world').  See below:

#include <iostream>

using namespace std;

int main ()

{ cout << "Hello world!" << endl;

return 0; }


when I hit build/run, I get 0 warnings/errors, but when my terminal opens, it shows the following:


Adrian-Hoggs-MacBook:~ adrianhogg$ /Users/adrianhogg/Documents/C++ ALL-IN-ONE-DUMMY/first project - hello/Hello /bin/Debug/Hello 
-bash: /Users/adrianhogg/Documents/C++: No such file or directory
Adrian-Hoggs-MacBook:~ adrianhogg$

My terminal is also showing 'bash' for some reason.


Code Block advised I download the Mac OS X XCode Tool, which I did from apple's website. 


Do I need to modify the settings in code block or do something specific with my terminal ?


Thanks much for your help!!!

stahta01:
Remove the spaces from your file/folder path.

--- Code: ---/Users/adrianhogg/Documents/C++ ALL-IN-ONE-DUMMY
--- End code ---

Turn on Full Compiler Logging if not turned on Already.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Tim S.

progr@mm1nG3niu5:
THANKS FOR YOUR RESPONSE, REALLY APPRECIATE IT.

UNFORTUNATELY, IT DID NOT WORK.  I AM RUNNING THE DEFAULT GNU GCC COMPILER.  HOW CAN I VERIFY IF THAT IS EVEN THE RIGHT ONE OR I HAVE THE CORRECT COMPILER INSTALLED ?  I DID TRY ALL OF THEM, BUT THE OTHER 3 GAVE ME AN ERROR AND WOULDN'T EVEN EXECUTE THE PROGRAM.  AT LEAST WHEN I RUN USING GNU GCC COMPILER, IT EXECUTES, BUT I AM STILL GETTING THE ERRORS MESSAGES BELOW:

WHEN I JUST BUILD, I GET THE FOLLOWING IN MY BUILD LOG:


Adrian-Hoggs-MacBook:~ adrianhogg$ /Users/adrianhogg/Documents/C++ ALL-IN-ONE-DUMMY/first project - hello/Hello /bin/Debug/Hello 
-bash: /Users/adrianhogg/Documents/C++: No such file or directory
Adrian-Hoggs-MacBook:~ adrianhogg$


WHEN I BUILD/RUN, I GET THE FOLLOWING IN MY BUILD LOG:

Adrian-Hoggs-MacBook:~ adrianhogg$ /Users/adrianhogg/Documents/C++ ALL-IN-ONE-DUMMY/first project - hello/Hello /bin/Debug/Hello 
-bash: /Users/adrianhogg/Documents/C++: No such file or directory
Adrian-Hoggs-MacBook:~ adrianhogg$


I ALSO GET THE FOLLOWING IN THE COMMAND PROMPT THAT OPENS WHEN I DO BUILD/RUN:

Adrian-Hoggs-MacBook:~ adrianhogg$ /Users/adrianhogg/Documents/C++ALL-IN-ONE-DUMMY/first_project-hello/Hello /bin/Debug/Hello 
-bash: /Users/adrianhogg/Documents/C++ALL-IN-ONE-DUMMY/first_project-hello/Hello: No such file or directory
Adrian-Hoggs-MacBook:~ adrianhogg$


THANKS AGAIN FOR TAKING THE TIME TO LOOK OVER THIS.  I'M WONDERING IF UNINSTALLING AND REINSTALLING WOULD HELP.  I WILL CONTINUE TO TROUBLESHOOT IN HOPES TO NOT HAVE TO DO THAT.

progr@mm1nG3niu5:
ADDITIONAL INFO:

I JUST CLOSE CODE BLOCK AND RE-OPENED AND I AM NOW GETTING THE FOLLOWING MESSAGE WHEN I BUILD:

Adrian-Hoggs-MacBook:~ adrianhogg$ /Users/adrianhogg/Documents/C++ALL-IN-ONE-DUMMY/first_project-hello/Hello /bin/Debug/Hello 
-bash: /Users/adrianhogg/Documents/C++ALL-IN-ONE-DUMMY/first_project-hello/Hello: No such file or directory
Adrian-Hoggs-MacBook:~ adrianhogg$


WHEN I MADE THE CHANGE YOU SUGGESTED, WHICH IS TO TURN ON THE FULL COMMAND LINE, I AM GETTING THE FOLLOWING MESSAGE WHEN I BUILD:

Adrian-Hoggs-MacBook:~ adrianhogg$ /Users/adrianhogg/Documents/C++ALL-IN-ONE-DUMMY/first_project-hello/Hello /bin/Debug/Hello 
-bash: /Users/adrianhogg/Documents/C++ALL-IN-ONE-DUMMY/first_project-hello/Hello: No such file or directory


Adrian-Hoggs-MacBook:~ adrianhogg$

oBFusCATed:
Do you have a problem with the CAPSLOCK key or you're intentionally using capitals? The netiquette says that writing in capitals is the same as yelling, so please don't do it!

Also activate your brain, because it is sleeping:

--- Quote ---Adrian-Hoggs-MacBook:~ adrianhogg$ /Users/adrianhogg/Documents/C++ALL-IN-ONE-DUMMY/first_project-hello/Hello /bin/Debug/Hello  

--- End quote ---

Navigation

[0] Message Index

[#] Next page

Go to full version