
Thanks!!
Simple answer - you can't.robiwan wrote:I have a windows native DLL from which I need to execute functions, from within a GCC compiled linux executable.
As the DLL I'll be calling merely does calculations, I hope to avoid those problems. But to dig in a bit, is it necessary to use winegcc to build a winelib application or would -lwine with gcc suffice ?vitamin wrote:Yes, winelib app can see both win32 API and POSIX API. But they do not coexist together well in all areas and you have to do extra work when mixing the two. Example: synchronization, files, GUI, network.
Does it allocate memory? Does it import any functions (use winedbump to check).If the answer is yes to either of the above questions then it's not that simple.robiwan wrote:As the DLL I'll be calling merely does calculations, I hope to avoid those problems.
You have to use winegcc.robiwan wrote:But to dig in a bit, is it necessary to use winegcc to build a winelib application or would -lwine with gcc suffice ?
Doesn't winelib wrap all Windows specific allocations (GlobalAlloc/Free etc)?vitamin wrote:Does it allocate memory?
I think not, at least nothing outside core Windows DLLs (hopefully only kernel32, which I'll check), which I hope winelib should be able to handle ?vitamin wrote:Does it import any functions (use winedbump to check).
Ok, fair enough.vitamin wrote:You have to use winegcc.