On 02/08/2010 06:10 PM, Joost Verburg wrote:
On 2/7/2010 10:25 PM, Uwe Stöhr wrote:
I found another repository that includes an MSVC project file. That's
the ZIP-file I sent you.
(Unfortunately I cannot find the link to it any longer.)

Looks like I didn't receive it. Could you try to send it again? Thx.

> I remember trying this one before but it was only compatible with
MinGW. Because of the different > DLL exports, compiling the MinGW
compatible source with MSVC would result in a DLL that doesn't
> link, exactly as you describe.

I see again that my programming capabilities are very limited. Why does
the compiler make a difference of the result? I mean the program is
written in C and I expect every C compiler to produce the same output. I
once compiled LyX using MSVC and parallel also MinGW (via cygwin) and
the result was the same - a fully functional LyX.

You have to tell the compiler which functions need to be exported in the DLL so they can be called from external programs. There are also different calling conventions. See for example: http://www.willus.com/mingw/yongweiwu_stdcall.html

If the functions are not exported correctly the DLL will compile but the function cannot be called from LyX so it won't link.

Why can't we compile statically instead? We don't really need a dll here...

Abdel.

Reply via email to