Code::Blocks Forums
User forums => Help => Topic started by: Patrunjel on June 28, 2010, 08:44:18 pm
-
Hello, i use Linux Ubuntu 10.04 , and have just installed codeblocks.
To start a new project, i do like this:
File->New->Project-> select Console Application -> C++ -> random project name ->The project saves to Desktop ( /home/patrunjel/Desktop/ ) ->Next ->Compiler : GNU GCC Compiler -> check OK on Debug, and Release (default configuration) -> Finish
When i try to Build&Run a source code, i get " It seems that the project has not been built yet.Do you want to build it now?" .If i choose "Yes" , no shell appears (the program does not run), and i get " Process terminated with status 127" in the build log.If i choose "No" , it appears a shell ( wow! ), but it prompts " sh: /home/patrunjel/Desktop/gdgfd/bin/Debug/gdgfd: not found " gdgfd is the random project name.And, unther that, "Press ENTER to continue. ".
I use CodeBlocks 8.02
What should i do? I searched Google and Youtube for like 2 hours at least. Somewone tell me please what i did wrong.All the settings are "unopened" .If you need more info, please post, and i will tell you.
PS: Sorry if i put this topic in the wrong thread.
-
Youtube - I've fallen from my chair.... haha...
Do you have C or C++ compiler installed? gcc or g++ depending on the project you're trying to build?
Also read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
-
C++ compiler installed.
I searched youtube for video tutorials for setting up CB. :)
-
So follow the faq entry... then
Try the commands CB executes on the command line.
If it works from the command line, then you have a configuration problem. Read the CB's manual (http://www.codeblocks.org/user-manual).
If you can't solve your problem post the build log, so someone could help you.
But keep in mind that you have to learn to solve problems yourself, that's what programmers do, most of the time.
BTW pasting the exact errors in google is the best way to search for answers.
-
I searched 2 hours, found nothing.Then i read the post above me, and try to search the error on google.i fixed the issue with $ sudo apt-get install g++ .It took 5 minutes :)) Thanks a lot!
-
BTW you can try the 10.05 release of codeblocks...
to devs: Does CB 10.05 show the same behaviour?
Because the message is absolutely unhelpful.
If the behaviour is the same in 8.02 and 10.05 - can CB be made to print something like "g++ was not found ... blabla"?
-
"tes3 - Release" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...
The above from 10.05 when the C Compiler name was wrong.
xxx-g++.exe -Wall -fexceptions -O2 -c H:\SourceCode\Projects\IDEs\CodeBlocks\Projects\tes3\main.cpp -o obj\Release\main.o
Execution of 'xxx-g++.exe -Wall -fexceptions -O2 -c H:\SourceCode\Projects\IDEs\CodeBlocks\Projects\tes3\main.cpp -o obj\Release\main.o' in 'H:\SourceCode\Projects\IDEs\CodeBlocks\Projects\tes3' failed.
The above from 10.05 when the C++ Compiler name was wrong.
Tim S.