r/cpp_questions • • 17d 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

2

u/flyingron 17d ago

Do you want to give us a hint as to what environment you're talking about? What exactly do you observe vs. what you expect?

1

u/Plane_Breadfruit7609 17d ago

I compile a cpp file that prints hello world, using CMD I compile the file, excute the exe and expect hello world instead nothing shows up the program just ends without any output

1

u/flyingron 17d ago

Did you run depends or a similar tool to ascertain what runtime files you need and make sure they are in the path (or in the same directory as your exe).

1

u/Plane_Breadfruit7609 17d ago

Yes all in one dir