User forums > Help

Need some urget help, please.

(1/2) > >>

Patrunjel:
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.

oBFusCATed:
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

Patrunjel:
C++ compiler installed.
I searched youtube for video tutorials for setting up CB. :)

oBFusCATed:
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.

Patrunjel:

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!

Navigation

[0] Message Index

[#] Next page

Go to full version