Hi All,
I'm trying to get a c# version of the tutorial
(
http://www.volumesoffun.com/polyvox/documentation/documentation/tutorial1.html)
up and running,
However I'm having trouble getting the Binding Files setup properly as I end up not having access to things like "SimpleVolume" in any end product I have been able to compile.
One of the First issues I'm having is whenever I try to compile with the following lines in the SimpleVolume.i
Code:
%template(SimpleVolumeMaterial8) PolyVox::SimpleVolume<PolyVox::Material8>;
%template(SimpleVolumeDensity8) PolyVox::SimpleVolume<PolyVox::Density8>;
SWIG doesn't complain, but I get
Code:
error LNK2019: unresolved external symbol "public: __thiscall PolyVox::SimpleVolume<class PolyVox::Density<unsigned char> >::SimpleVolume<class PolyVox::Density<unsigned char> >(int,int,int)" (??0?$SimpleVolume@V?$Density@E@PolyVox@@@PolyVox@@$$FQAE@HHH@Z) referenced in function "extern "C" void * __stdcall CSharp_new_SimpleVolumeDensity8__SWIG_2(int,int,int)" (?CSharp_new_SimpleVolumeDensity8__SWIG_2@@$$J212YGPAXHHH@Z)
error LNK2019: unresolved external symbol "public: __thiscall PolyVox::SimpleVolume<class PolyVox::Material<unsigned char> >::SimpleVolume<class PolyVox::Material<unsigned char> >(int,int,int)" (??0?$SimpleVolume@V?$Material@E@PolyVox@@@PolyVox@@$$FQAE@HHH@Z) referenced in function "extern "C" void * __stdcall CSharp_new_SimpleVolumeMaterial8__SWIG_2(int,int,int)" (?CSharp_new_SimpleVolumeMaterial8__SWIG_2@@$$J212YGPAXHHH@Z)
error LNK2028: unresolved token (0A000EB9) "public: __thiscall PolyVox::SimpleVolume<class PolyVox::Density<unsigned char> >::SimpleVolume<class PolyVox::Density<unsigned char> >(int,int,int)" (??0?$SimpleVolume@V?$Density@E@PolyVox@@@PolyVox@@$$FQAE@HHH@Z) referenced in function "extern "C" void * __stdcall CSharp_new_SimpleVolumeDensity8__SWIG_2(int,int,int)" (?CSharp_new_SimpleVolumeDensity8__SWIG_2@@$$J212YGPAXHHH@Z)
error LNK2028: unresolved token (0A000ED4) "public: __thiscall PolyVox::SimpleVolume<class PolyVox::Material<unsigned char> >::SimpleVolume<class PolyVox::Material<unsigned char> >(int,int,int)" (??0?$SimpleVolume@V?$Material@E@PolyVox@@@PolyVox@@$$FQAE@HHH@Z) referenced in function "extern "C" void * __stdcall CSharp_new_SimpleVolumeMaterial8__SWIG_2(int,int,int)" (?CSharp_new_SimpleVolumeMaterial8__SWIG_2@@$$J212YGPAXHHH@Z) I:\Misc\Gms\Programming\PolyVoxCore_DLL_Step3\PolyVoxCore\PolyVoxCore_wrap.obj
Anyone have some advice on how to properly wrap PolyVox for c#,
or why I'm getting these errors?
Thanks!