Code::Blocks Forums

User forums => Help => Topic started by: missbrittany on April 29, 2012, 10:00:55 pm

Title: code;;blocks not bulding in ubuntu can you help plese
Post by: missbrittany 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 
Title: Re: code;;blocks not bulding in ubuntu can you help plese
Post by: stahta01 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.
Title: Re: code;;blocks not bulding in ubuntu can you help plese
Post by: missbrittany 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 
Title: Re: code;;blocks not bulding in ubuntu can you help plese
Post by: stahta01 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.
Title: Re: code;;blocks not bulding in ubuntu can you help plese
Post by: oBFusCATed 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