As expected, I was getting a lot of errors, so I tried something simple instead:
Code: Select all
#include <iostream>
int main() {
std::cout << "Hello main\n";
}

But then I added some very simple threading:
Code: Select all
#include <iostream>
#include <thread>
void call_from_thread() {
std::cout << "Hi from thread\n";
}
int main() {
std::thread t(call_from_thread);
t.join();
return 0;
}

Clicking "Show Details" shows nothing and exits Wine, but clicking "Close" spits out more output:

I tried again, this time changing linking to the shared version of the C++ Runtime Library (`Runtime Library` to set to `/MD`), then grabbed `msvcr120.dll` and `msvcp120.dll` from my `C:/Windows/SysWOW64` directory on Windows machine for Wine to use. But I got pretty much the same error messages.
Searching through Google suggests that threading is supported by Wine, so I have no idea why my program fails.