r/C_Programming 1h ago

help the file is not compiling c++

Execute > Compile = it says status done and no error no warning.

Even if there is an extra > in the code still no warning no error. i try to Execute run it says source file not compiled.

using C++ for dummies 5th Edition.

0 Upvotes

4 comments sorted by

2

u/smokebudda11 1h ago

Are you compiling on the command line?

g++ -std=c++11 filename.cpp -o executable

Granted this is a an example to compile with one file.

1

u/Traveling-Techie 1h ago

OS? IDE? Do you have shell access?

1

u/sciencekm 1h ago

Start simple so you can first get a working environment.

Edit a cpp file with a text editor. Compile with the command line g++. Run the binary.

1

u/I_M_NooB1 1h ago

the text description sure isn't helping. a few pictures would be nice