Today I downloaded through SVN BCI2000. I try to build with Visual Express 2008. Everything is OK, except tree modules related to Python. The messages are as follows:
Linking...
PythonLink24.obj : error LNK2019: unresolved external symbol __imp___Py_Dealloc referenced in function "void __cdecl PyAPI24::PyWrapMacro_Py_DECREF(struct _object *)" (?PyWrapMacro_Py_DECREF@PyAPI24@@YAXPAU_object@@@Z)
PythonLink25.obj : error LNK2001: unresolved external symbol __imp___Py_Dealloc
PythonLink26.obj : error LNK2001: unresolved external symbol __imp___Py_Dealloc
PythonLink24.obj : error LNK2019: unresolved external symbol __imp___Py_NegativeRefcount referenced in function "void __cdecl PyAPI24::PyWrapMacro_Py_DECREF(struct _object *)" (?PyWrapMacro_Py_DECREF@PyAPI24@@YAXPAU_object@@@Z)
PythonLink25.obj : error LNK2001: unresolved external symbol __imp___Py_NegativeRefcount
PythonLink26.obj : error LNK2001: unresolved external symbol __imp___Py_NegativeRefcount
PythonLink24.obj : error LNK2001: unresolved external symbol __imp___Py_RefTotal
PythonLink25.obj : error LNK2001: unresolved external symbol __imp___Py_RefTotal
PythonLink26.obj : error LNK2001: unresolved external symbol __imp___Py_RefTotal
D:\My Documents\NeuralEngineering\BCI2000\prog\PythonApplication.exe : fatal error LNK1120: 3 unresolved externals
Could you help me?
Problems with building in Visual Express 2008
-
boulay
- Posts: 382
- Joined: 25 Dec 2011, 21:14
Re: Problems with building in Visual Express 2008
Sorry that you have waited so long for a response... especially a response that only has more questions.
Are you intending on using BCPy2000 modules? BCPy2000 modules are wrappers for Python files allowing you to create your own source/processing/application modules in Python instead of C++. If not, then you don't need these modules and you can exclude them from your make/configure/compile chain.
If you are planning on using BCPy2000, then please tell us what operating system (including x32 or x64) you are using.
Are you intending on using BCPy2000 modules? BCPy2000 modules are wrappers for Python files allowing you to create your own source/processing/application modules in Python instead of C++. If not, then you don't need these modules and you can exclude them from your make/configure/compile chain.
If you are planning on using BCPy2000, then please tell us what operating system (including x32 or x64) you are using.
-
vacys
- Posts: 3
- Joined: 10 Apr 2012, 01:35
Re: Problems with building in Visual Express 2008
We were trying to learn what is purpose of BCPy2000 package. We came to the same conclucion as you wrote. We do not use Python now. So, we decided that we will not use Python in the future, as well. Therefore, this problem is not problem for us. Thank you for reply.
-
mellinger
- Posts: 1341
- Joined: 12 Feb 2003, 11:06
Re: Problems with building in Visual Express 2008
BPy2000 modules (i.e., Python modules) can not be linked in Debug mode. Switch to Release mode in order to link them, or delete your CMakeCache.txt file from the BCI2000/build directory, execute Make*.bat for your configuration, and answer "n" when asked whether you want to build BCPy2000.
Regards,
Juergen
Regards,
Juergen
-
vacys
- Posts: 3
- Joined: 10 Apr 2012, 01:35
Re: Problems with building in Visual Express 2008
Dear Juergen,
Thank you. It compiles.
Regards,
Vacys
Thank you. It compiles.
Regards,
Vacys
Who is online
Users browsing this forum: No registered users and 0 guests
