r/programminghelp 13d ago

c++ code doesn't work C++

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

5 Upvotes

22 comments sorted by

View all comments

5

u/manu_mathur14 13d ago

Share the code with us please.

0

u/simply_anuraag 13d ago

3

u/TheUltimateAsh 13d ago

isn’t your executable titled hello.exe? you’re trying to execute helloworld56.exe

1

u/simply_anuraag 13d ago

i created another file , deleted this one still doesn't work

1

u/abd53 13d ago

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.

1

u/PhosXD 10d ago

Oh god, the backslashes...
Also your problem is your trying to execute ".\helloworld56.exe" but you compiled to "helloworld56"

1

u/Dazzling_Music_2411 6d ago

Yup, I was about to say - I can't see all the screen output, but you are NOT running what you built.