WineLib issues

Questions about Wine on Linux
Post Reply
Zheka
Newbie
Newbie
Posts: 4
Joined: Fri Mar 29, 2024 6:14 am

WineLib issues

Post by Zheka »

Trying to compile/run a Toy.cpp with WineLib :
#include <iostream>
int main() {
printf("\n__TESTING__");
std::cin.ignore();
return 0;
}
winemaker --console .
make

I get the following files produced in the source directory:

makefile
toy.o
toy.exe.so
toy.exe

Issues:
1/ the exe file is marked (linux) 'executable' - which prevents it from being run by Wine Windows Program Loader, altogether.

2/ Trying to run it upon unmarking with: wine toy.exe (from the directory of toy.exe)
produces:
0024:fixme:file:parse_samba_dos_attrib_data Unhandled user.DOSATTRIB extended attribute value.
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: File not found.

IF I run it by just double-clicking it, i get small error windows: "Invalid handle" and then "File not found".

If i just copy an existing windows exe file to the same directory and run it, then - when running in terminal - i still get the "0024:fixme...", but the file does run normally; same when run via gui/doubleclicking.

Interestingly, when i look at the folder content in Thunar, the 'winemaker-produced' exe is recognized as "Windows or DOS file", while the copied msvc-produced' exe is seen as "Windows or ELF file"

Debian Trixie/ XFCE, Wine 9.5
Post Reply