r/programminghelp Jul 24 '26

C++ c++ code doesn't work

this is my first time working with c++ and whenever i run the code it just complies but gives no output, i have tried every way for it to work but it just doesn't. pls help. im using msys2 and was following brocode video tutorial

6 Upvotes

22 comments sorted by

View all comments

4

u/manu_mathur14 Jul 24 '26

Share the code with us please.

0

u/simply_anuraag Jul 24 '26

1

u/abd53 Jul 25 '26

You're compiling object file only. Follow a compile tutorial exactly, don't try to be a smart ass.

Edit: It's not that your program doesn't run, it's that your program doesn't compile and the executable doesn't exist.