Thanks. That removed that warning.
I was missing library_dirs, so I had full paths to the libraries. Thanks for the suggestion. The code is a bit tidier now, however the error still stands.
I included the build files too incase then are of any use.
P:\CythonCXXTest\testc>ppython setup.py
running build_ext
building 'testc' extension
creating build\temp.win32-2.6
creating build\temp.win32-2.6\Release
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W3 /GS- /DNDEBUG -IC:\Panda3D-1.7.0\include -IC:\Panda3D-1.7.0\python\inclu
de -IC:\Panda3D-1.7.0\python\PC /Tptestc.cpp /Fobuild\temp.win32-2.6\Release\tes
tc.obj /EHsc
testc.cpp
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\vector(439) : warn
ing C4275: non dll-interface class 'std::_Container_base_aux' used as base for d
ll-interface class 'std::_Container_base_aux_alloc_real<_Alloc>'
with
[
_Alloc=pallocator_array<TypedWritable *>
]
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\xutility(3
77) : see declaration of 'std::_Container_base_aux'
c:\panda3d-1.7.0\include\vector_src.h(64) : see reference to class templ
ate instantiation 'std::vector<_Ty,_Ax>' being compiled
with
[
_Ty=TypedWritable *,
_Ax=pallocator_array<TypedWritable *>
]
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\vector(439) : warn
ing C4275: non dll-interface class 'std::_Container_base_aux' used as base for d
ll-interface class 'std::_Container_base_aux_alloc_real<_Alloc>'
with
[
_Alloc=pallocator_array<std::string>
]
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\xutility(3
77) : see declaration of 'std::_Container_base_aux'
c:\panda3d-1.7.0\include\vector_src.h(64) : see reference to class templ
ate instantiation 'std::vector<_Ty,_Ax>' being compiled
with
[
_Ty=std::string,
_Ax=pallocator_array<std::string>
]
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\vector(439) : warn
ing C4275: non dll-interface class 'std::_Container_base_aux' used as base for d
ll-interface class 'std::_Container_base_aux_alloc_real<_Alloc>'
with
[
_Alloc=pallocator_array<unsigned char>
]
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\xutility(3
77) : see declaration of 'std::_Container_base_aux'
c:\panda3d-1.7.0\include\vector_src.h(64) : see reference to class templ
ate instantiation 'std::vector<_Ty,_Ax>' being compiled
with
[
_Ty=unsigned char,
_Ax=pallocator_array<unsigned char>
]
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\vector(439) : warn
ing C4275: non dll-interface class 'std::_Container_base_aux' used as base for d
ll-interface class 'std::_Container_base_aux_alloc_real<_Alloc>'
with
[
_Alloc=pallocator_array<int>
]
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\xutility(3
77) : see declaration of 'std::_Container_base_aux'
c:\panda3d-1.7.0\include\vector_src.h(64) : see reference to class templ
ate instantiation 'std::vector<_Ty,_Ax>' being compiled
with
[
_Ty=int,
_Ax=pallocator_array<int>
]
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL /nologo
/INCREMENTAL:NO /LIBPATH:C:\Panda3D-1.7.0\python\libs /LIBPATH:C:\Panda3D-1.7.0\
lib /LIBPATH:C:\Panda3D-1.7.0\python\libs /LIBPATH:C:\Panda3D-1.7.0\python\PCbui
ld libp3framework.lib libpanda.lib libpandafx.lib libpandaexpress.lib libp3dtool
.lib libp3dtoolconfig.lib libp3pystub.lib libp3direct.lib /EXPORT:inittestc buil
d\temp.win32-2.6\Release\testc.obj /OUT:P:\CythonCXXTest\testc\testc.pyd /IMPLIB
:build\temp.win32-2.6\Release\testc.lib /MANIFESTFILE:build\temp.win32-2.6\Relea
se\testc.pyd.manifest
Creating library build\temp.win32-2.6\Release\testc.lib and object build\temp
.win32-2.6\Release\testc.exp
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe -nologo -manifest build
\temp.win32-2.6\Release\testc.pyd.manifest -outputresource:P:\CythonCXXTest\test
c\testc.pyd;2
Importing module
Traceback (most recent call last):
File "setup.py", line 46, in <module>
import testc
SystemError: dynamic module not initialized properly