Cannot print in the console

Hi

I have tried to print to the console in various ways and failed in all of them

I have written ofApp.cpp as follows
build and run this, nothing appears in the console
sound device list is also not printed

#include "ofApp.h"

//--------------------------------------------------------------
void ofApp::setup()
{
  float value = 0.2;

  ofLogToConsole();

  ofLog(OF_LOG_NOTICE, "value: %f", value);
  ofLog() << "value: " << value;
  ofLogVerbose() << "verbose";
  ofLogNotice() << "notice";
  ofLogWarning() << "warning";
  ofLogError() << "error";
  ofLogFatalError() << "fatal error";
  std::cout << "value: " << value << endl;
  std::printf("value: %f\n", value);

  soundStream.printDeviceList();
}

Am I doing something fundamentally wrong?

My setup:
Windows 10 Pro 21H2
msys2 installed on C:\msys64
oF nightly build v20220622 mingw64

Thank you.

1 Like

I have the same issue! If you have found a solution, please consider sharing it here.

Hello Joshua.
I haven’t solved this problem yet. I promise to pass it on to you if I find a solution.

1 Like

I solved this problem.
I installed of_v20220801_msys2_mingw64_nightly and tried the same code. So it works.
But I am using a new PC also its OS is Windows 11. I don’t know if I try the same thing on my old PC will solve the problem.
After all, I couldn’t figure out the cause.

1 Like