How to Calling PE Dlls on linux??

Damjan Jovanovic damjan.jov at gmail.com
Tue Aug 21 02:32:44 CDT 2007


On 8/21/07, trulyliu <trulyliu at gmail.com> wrote:

> I have tried these code, It works well. Thanks a lot.
> Could I use gcc/g++ instead of winegcc/wineg++ ???
> mplayer use gcc as it's complier? What's the mystery in it?
>

gcc/g++ would give you the wrong ABI (eg. 4 bytes per wide char
instead of 2 bytes), and the special code needed to set up the Windows
memory layout and the thread extension block and structured exception
handling wouldn't get executed, leading to segfaults when you call any
code that tries to access them. That's assuming you can even compile
and link.

That's why you need winegcc/wineg++.

> trulyliu at gmail.com

Damjan



More information about the wine-devel mailing list