Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 73262

stata python plugin compiling: unresolved external symbol __imp__

$
0
0
I tried to compile the python_plugin for stata on a Windows 64 bit machine with python33.lib and Visual Studio Express 2012 (and 2008)
I tried the instructions in
http://fmwww.bc.edu/RePEc/bocode/p/python_plugin.pdf
and tried Release for Win32 and for x64.

Bu i always get 37 Error messages like
Error 1 error LNK2001: unresolved external symbol __imp__PyExc_SystemExit C:\Users\MaxBohnet\Documents\Visual Studio 2008\Projects\stata_python\stata_python\python_plu gin.obj stata_python
Error 2 error LNK2001: unresolved external symbol __imp__PyFloat_FromDouble C:\Users\MaxBohnet\Documents\Visual Studio 2008\Projects\stata_python\stata_python\python_plu gin.obj stata_python
etc.

I found explanations in other forums like:
The __imp__ prefix appears whenever you are linking to a DLL. It does not appear when linking to statically linked libraries. Most likely the code is generated to be linked against a DLL import lib, but you have linked it with a static lib instead.

Bit i am not an expert in Compiling, linking etc. and have no idea what the difference between a static and dynamically linked library is.
So does anybody has an idea how to fix that?

Max


Viewing all articles
Browse latest Browse all 73262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>