0

I am using Visual Studio Community 2022. My program compiles and runs just fine except that stdout seems to not be directed to the console.

What would be the best way to change that? Keep in mind that it is a window application, I would just like to have console output for additional debug purposes, so I cannot change the subsystem flag.

I am also not compiling from the IDE, but the command line.

I tried to change the subsystem flag to console, but that conflicts with the WinMain entrypoint.

1
  • use DbgPrint or OutputDebugString Commented Feb 17 at 18:46

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.