Search found 1 match
- Wed Feb 01, 2023 5:33 am
- Forum: Wine Help
- Topic: strange behaviour with multithreading and C stdio
- Replies: 0
- Views: 4333
strange behaviour with multithreading and C stdio
I've the following code: #include <stdio.h> #include <windows.h> #include <process.h> int main() { /* DWORD WINAPI */void input(/* LPVOID */void* lpParam) { Sleep(1000); printf("hello mingw!\n"); // return 0; } _beginthread(input, 0, NULL); getchar(); return 0; } I cross-compile from ubunt...