Are There Any Way to Link My Program with Wine-Compiled Part

Are there any way to link my program with Wine-compiled part?

You may be able to use Winelib to write a Linux app that can use Windows DLLs.

EDIT:

For future reference:

libtest.c:

#include <stdio.h>
#include <windows.h>
int main(int argc, char* argv[])
{
HMODULE h;

h = LoadLibrary("cards.dll");
printf("%d\n", h);
}

Execution:

$ winegcc -m32 libtest.c 
$ ./a.out
536936448

How to use a windows .lib on linux using WINE

Have you tried compiling under Windows and running the entire program under Wine?

I'm not sure you can splice Wine and Linux programs.

How can I compile my Windows program into a single Linux binary that runs with Wine?

I guess this is what winelib is for. However I have never tried it. (Wasn't Kylix Delphi + winelib compiled for Linux?)

Running Linux program using Windows DLL (winelib) without wine?


I've read that it is possible to use a DLL inside Linux software (using winelib).

Very few Android devices run on x86 processors. Zero Windows apps are written for ARM CPUs (the dominant CPU architecture for Android).

Ergo, you cannot use a Windows DLL on the vast majority of Android devices, regardless of WINE.



Related Topics



Leave a reply



Submit