[Bf-python] compile a native c extension for python with msvc 2013

Michel Anders Michel.Anders at inter.nl.net
Sat Apr 12 20:27:34 CEST 2014


Hi,

 

Did anyone have any luck in compiling the example_nt extension from the python source distribution w. msvc 2013?

 

I copied it into  lib\win64_vc12\python, opened the solution in msvc 2013 and after pointing the include directories and library directories o the ones in the same python lib it compiles ok but complains about not being able to find initexample although there is an /export:initexample defined in the properties. Anyone have a clue?

 

Cheers,

 

-- Michel.

 

1>------ Build started: Project: example, Configuration: Debug Win32 ------

1>  example.c

1>e:\blender source environment\lib\win64_vc12\python\include\python3.3\pymath.h(22): warning C4273: 'round' : inconsistent dll linkage

1>          e:\visual studio 2013\vc\include\math.h(516) : see previous definition of 'round'

1>example.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:LBR' specification

1>LINK : error LNK2001: unresolved external symbol initexample

1>.\Debug/example_d.lib : fatal error LNK1120: 1 unresolved externals

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20140412/3a4360f0/attachment.html>


More information about the Bf-python mailing list