Bloodshed
Mark Wieder
mwieder at ahsoftware.net
Tue Aug 23 17:26:40 EDT 2005
All-
I spent some time yesterday downloading and experimenting with the
Bloodshed Dev C++ compiler to create Windows external libraries and
came up with this:
Yes, it can be done. There are a couple of undocumented options you
need to set in order to do this. The Bloodshed help file seems fairly
useless (where have I heard this before?) but perusing the online gcc
documentation with Google gave better, if painstaking, results for the
command-line options. There may be #pragmas for some of these things
but I haven't found them.
Include your source file and XCmdGlue.c.
Under Project | Project Options select the "Parameters" tab.
Then in the Linker window you will want to have just these two
options:
-fno-leading-underscore
-def myDLL.def <or whatever the name of your def file is>
The contents of myDLL.def should be:
LIBRARY external
EXPORTS
getXtable
Hope this helps someone.
--
-Mark Wieder
mwieder at ahsoftware.net
More information about the use-livecode
mailing list