M
mousou
Hi all,
I trying to port a WDM driver in VS.Net 2005. I had several difficulty,
but it's one of them I still did not found any solutions.
My code use the function _alloca to allocate space on the stack. When I
compile my code with the include of <malloc.h> I have no problem but
the difficulty raise with the linker:
error LNK2019: unresolved external symbol __alloca_probe_16 referenced
in function "long __stdcall CreateRegistryPath(void * &,char const
*,unsigned long)" (?CreateRegistryPath@@YGJAAPAXPBDK@Z) drvutils.obj
It seems that the new Multithreaded runtime of VC8 doesn't contains
this function...
So I have try to use compiler intrinsic version by adding /Oi to
compiler option and removing the #include <malloc.h>
I have a compiler error now:
error C3861: '_alloca': identifier not
found d:\Dev\Sp07-1\XSp\_scc\VirtualAudioCable\Originals\VAC\drvutils.cpp 1630
However _alloca is declared as available on all platform :
http://msdn2.microsoft.com/en-us/library/5704bbxw.aspx
I trying to port a WDM driver in VS.Net 2005. I had several difficulty,
but it's one of them I still did not found any solutions.
My code use the function _alloca to allocate space on the stack. When I
compile my code with the include of <malloc.h> I have no problem but
the difficulty raise with the linker:
error LNK2019: unresolved external symbol __alloca_probe_16 referenced
in function "long __stdcall CreateRegistryPath(void * &,char const
*,unsigned long)" (?CreateRegistryPath@@YGJAAPAXPBDK@Z) drvutils.obj
It seems that the new Multithreaded runtime of VC8 doesn't contains
this function...
So I have try to use compiler intrinsic version by adding /Oi to
compiler option and removing the #include <malloc.h>
I have a compiler error now:
error C3861: '_alloca': identifier not
found d:\Dev\Sp07-1\XSp\_scc\VirtualAudioCable\Originals\VAC\drvutils.cpp 1630
However _alloca is declared as available on all platform :
http://msdn2.microsoft.com/en-us/library/5704bbxw.aspx