thanks for the followup.
On 8/30/05, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
>
>
> 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.
none of my source files have "Interfaces" in the uses clause.
>
> >
> > 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")
done.
>
> Also, disable the 'Win32 GUI application' under "Project|Compiler options",
> tab linking
the (-WG) option _wasn't_ on in the IDE.
i did for some reason have the "target" (-T) drop down set to Win32.
i reset this to default.
in any event, this "show options" dialog now says :
<snip>
-Sd -Cirot -vewnhi -l -FuX:\XPSDK102\Delphi\XPLM\ -Fu.
-oX:\src\x-pascal\xsa.dll
</snip>
... and nothing different really seems to happen.
size differences have improved some.
not sure what i did exactly (i think a 'clean' build helped).
lazarus DLL is now ~1231KB, and the FPC generated DLL is ~927KB.
the flight simulator is still not loading the DLL built by lazarus
though but will load a DLL compiled by FP.
one other question ?
Would lazarus be introducing a link time dependency on any other DLL's
on windows ?
the message produced by the flight simulator lists "a missing DLL" as
one of the possible reasons for not being able to load the DLL, along
with the "it isn't a DLL" reason.
thanks for any help.
Tony
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives