News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

code;;blocks not bulding in ubuntu can you help plese

Started by missbrittany, April 29, 2012, 10:00:55 PM

Previous topic - Next topic

missbrittany

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 

stahta01

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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

missbrittany

Thank you  for helping  ps gobjc++-4.6-arm-linux-gnueabihf 4.6.3-1ubuntu5cross1.63 will this one work 

stahta01

Quote from: 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 


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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

Quote from: missbrittany on April 29, 2012, 10:00:55 PM
/bin/sh: g++: not found

Quote from: 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  
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!]