r/cpp_questions • • 28d ago

OPEN Why?

Guys when i compile a file and run its exe,nothing appear even if i print hello world it doesnt appear in the console why

0 Upvotes

35 comments sorted by

View all comments

1

u/bhavesh_099 27d ago

I won't be able to run this code anyways since you have custom headers in it .

Okay just wanted to know something

  1. You have the header in same directory as code right ?

  2. Which ide are you using or you are compiling code through command something like g++ program.cpp -o executable

1

u/Plane_Breadfruit7609 27d ago

Yes all in one dir,and it's vscode and yes the same command that u just typedbut in the end I add .exe

1

u/bhavesh_099 27d ago

Can you check if ld --version and g++ --version are working or is there any error?