[Soc-2007-dev] Friday Status Report
joe
joeedh at gmail.com
Sat Jun 30 16:08:34 CEST 2007
On 6/30/07, Aaron Moore <two.a.ron at gmail.com> wrote:
> Hi everyone,
>
> This week I:
> 1. created a final design of the basic render api and got feedback
> from bf-committers.
> 2. installed linux, and got blender compiling. This was because I
> cannot figure out how to compile .dlls with callbacks in them on
> windows/mingw. The __declspec(dllexport) is set and it still will not
> link.
If your being bitten by the
cannot-reference-functions-in-an-executable problem, take a look
at the plugin api code in source/blender/blenpluginapi, especially externdef.h.
Now to actually compile the .dll, you need to create an import
library. To do that, you first create .DEF that's of the form
LIBRARY
EXPORTS
name_of_a_function
name_of_another_function
Then you create an import lib from this with the dllname =
blender.exe. On mingw this would be like:
dlltool --input-def file.def --output-lib libimportlib.a --dllname blender.exe
Joe
More information about the Soc-2007-dev
mailing list