wine 5.0 build on Ubuntu 20.04

Questions about Wine on Linux
Locked
markok
Newbie
Newbie
Posts: 1
Joined: Wed May 13, 2020 5:35 am

wine 5.0 build on Ubuntu 20.04

Post by markok »

I have written dll for our application using Winelib, which calls native Linux API. C++ is used.
If I run it with Wine 5.0 from Ubuntu repositories, it crashes on first C++ exception
thrown (see example). If I run it with Wine 5.0 which I have built myself, the app works.
It also works in Wine 3 on Ubuntu 18.04.
App which shows the problem:

#include <stdexcept>
#include <stdio.h>

int main() {
printf("start\n");
try {
throw std::runtime_error("desc");
} catch (std::exception &ex) {
printf("in catch\n");
}
printf("end\n");
}

built with:
g++ -c -fPIC t.cpp
/home/mkk/wine-git_64/tools/winegcc/wineg++ -B/home/mkk/wine-git_64/tools/winebuild -o tt t.o
run as:
wine tt.exe.so
Prints 'start', then crashes.
Any idea what might be wrong? Or should I contact Ubuntu maintaners?
Locked