Usually you might have faced the following issue while compiling on Visual Studio .NET 2005.
error LNK2019: unresolved external symbol __chkstk referenced in function…
This is caused by stack probes. Either you can increase the size of the stack to what ever maximum your function uses using Gs option (Default for x64 is /Gs8192) or using heap.
Gs option is an advanced feature to control stack probes. A stack probe is a sequence of code the compiler inserts into every function call.
Blogged with the Flock Browser