Author Topic: code;;blocks not bulding in ubuntu can you help plese  (Read 4953 times)

Offline missbrittany

  • Single posting newcomer
  • *
  • Posts: 2
code;;blocks not bulding in ubuntu can you help plese
« on: April 29, 2012, 10:00:55 pm »
all i had  dun was use the wizard>  console application >then tried to build it  and run . and i get this code 
i can run it under windows  but i am now running all my computers in  Linux
this is what i a compiling
#include <iostream>

using namespace std;

int main()
{
    cout << "Hello Brittany!" << endl;
    return 0;
}

code i am getting when i try to compile it >>
------------- Build: Release in newcplus ---------------

Compiling: main.cpp
/bin/sh: g++: not found
Process terminated with status 127 (0 minutes, 0 seconds)
0 errors, 0 warnings
  or is this normal in  Linux  and every thing is OK   As you get a run windows in Microsoft windows YOU GET Thank you   ps it is highlighted  in red 

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6769
    • My Best Post
Re: code;;blocks not bulding in ubuntu can you help plese
« Reply #1 on: April 29, 2012, 10:08:14 pm »
It is normal when you do NOT have the C++ compiler installed.

I suggest installing the GCC C++ Compiler.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline missbrittany

  • Single posting newcomer
  • *
  • Posts: 2
Re: code;;blocks not bulding in ubuntu can you help plese
« Reply #2 on: April 29, 2012, 10:42:23 pm »
Thank you  for helping  ps gobjc++-4.6-arm-linux-gnueabihf 4.6.3-1ubuntu5cross1.63 will this one work 

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6769
    • My Best Post
Re: code;;blocks not bulding in ubuntu can you help plese
« Reply #3 on: April 29, 2012, 11:14:31 pm »
Thank you  for helping  ps gobjc++-4.6-arm-linux-gnueabihf 4.6.3-1ubuntu5cross1.63 will this one work 


You need to ask this question on an Ubuntu site; after YOU state the information on the system is supposed to run the compiled code.

If you are running the code on a Arm system then it might be right; if not, then it is WRONG.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12207
    • Travis build status
Re: code;;blocks not bulding in ubuntu can you help plese
« Reply #4 on: April 29, 2012, 11:35:53 pm »
/bin/sh: g++: not found

Thank you  for helping  ps gobjc++-4.6-arm-linux-gnueabihf 4.6.3-1ubuntu5cross1.63 will this one work  
Will it work? I see no difference between g++ and gobjc++...

Read this please: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29
(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!]