Read-only archive of the All About Symbian forum (2001–2013) · About this archive

unresolved external symbol __chkstk

1 replies · 4,485 views · Started 21 May 2003

hi
When we port a C program to symbian;it works fine but when we link a Win32 static library "STATICLIBRARY samp.lib" to a .mmp file;unresolved external symbol __chkstk is ther.
i have seen that solution is to reduce the use of stack space but there is no problem of stack space in my case...If any body let me know,what may be the efficient solution for this problem??

thanx

This error normally means that somewhere a function has allocated a lot of memory on the stack space.

The solution is to move the memory from the stack to the heap. This is the best solution.

If you can not (for some reason) move the memory to the heap, then you may try implementing a dummy __chkstk function and increase the stack size in the MMP file. And then you hope for the best.