hi all,
i'm new to pascal generally.
i have been using FPC 2.0.0 and the text mode IDE for a couple of
months, developing a DLL for a "plugin" for a flight simulator.
with FPC 2.0.0, i hadn't been doing anything too fancy.
the "type" of my primary source file is a "library" and i have a
handful of other source files all of type unit.
the DLL has a handful of procedures it must export, all of which are
declared in an "exports" section of the primary source file.
as i said, without doing anything specific, i was using the text mode
ide to build the code, and the compiler would naturally emit a DLL for
me on Win32.
i could then plop this DLL down where it needed to be and the flight
simulator would load and use the DLL without issue and this has been
working for me for some time in this way.
i have now been trying, for a couple of days to get lazarus to do the
same thing for me (just do a simple build of my source into a DLL),
but when i create a lazarus project using my "primary" source file as
the project primary file, then adding all of my dependent units,
things don't work so well.
Lazarus compiles the files successfully.
i see all of the expected .ppu files and .o files.
i see that Lazarus spits out a DLL for me.
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.
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>
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 ?
lazarus seems to be confused.
i've poked and prodded and can't see any other useful options.
i don't know how to troubleshoot this.
thoughts ?
thanks,
Tony
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives