On Tue, 30 Aug 2005, Tony Pelton wrote:

> hi all,
>
>
> interestingly, with what i _think_ is the same basic set of compiler
> flags for debug and optimizations etc ... the DLL from lazarus comes
> out about 4x as large.

First off, try to look at the uses clause of your main source file.
if it contains something like 'interfaces', remove it.

>
> anyway ... when the flight simulator loads the DLL from lazarus, it
> spits out an error message telling me that the DLL isn't a DLL.
>
> "Show Options" for the compiler in the IDE says :
>
> <snip>
>  -Sd -Cirot -TWin32 -gl -vewnhi -l -FuX:\XPSDK102\Delphi\XPLM\ -Fu.
> -oX:\src\x-pascal\xsa.exe
> </snip>

Remove the -gl (switch off debug info in "Project|Compiler options", tab 
linking),
and set the output name to xsa.dll, because it is creating an exe.
("Project|project options", tab application, "Target file")

Also, disable the 'Win32 GUI application' under "Project|Compiler options", tab 
linking

>
> i'm not too sure about the "-o" option ?
>
> the compiler is clearly spitting out "xsa.dll" instead of "xsa.exe".
>
> presumably this is because the source file has the "library" directive ?

Probably, yes.

Michael.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to