Author Topic: Need some urget help, please.  (Read 5619 times)

Offline Patrunjel

  • Single posting newcomer
  • *
  • Posts: 3
Need some urget help, please.
« 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.
« Last Edit: June 28, 2010, 08:57:48 pm by Patrunjel »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Need some urget help, please.
« Reply #1 on: June 28, 2010, 09:27:56 pm »
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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Patrunjel

  • Single posting newcomer
  • *
  • Posts: 3
Re: Need some urget help, please.
« Reply #2 on: June 28, 2010, 09:29:04 pm »
C++ compiler installed.
I searched youtube for video tutorials for setting up CB. :)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Need some urget help, please.
« Reply #3 on: June 28, 2010, 09:57:05 pm »
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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Patrunjel

  • Single posting newcomer
  • *
  • Posts: 3
Re: Need some urget help, please.
« Reply #4 on: June 28, 2010, 10:10:02 pm »

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!
« Last Edit: June 28, 2010, 10:12:22 pm by Patrunjel »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Need some urget help, please.
« Reply #5 on: June 29, 2010, 12:48:38 am »
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"?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7787
    • My Best Post
Re: Need some urget help, please.
« Reply #6 on: June 29, 2010, 01:41:57 am »
Quote
"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.

Quote
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.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org