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

Compiler Bug

0 replies · 1,610 views · Started 20 September 2004

Environment: SDK 7.0s, Compiler Microsoft VC++ 6.0, OS Windows 2000 pro, build command used 'abld build wins udeb'

The following code


GZip(GetPathName(_L("car.dat"😉), (TUint8**)&iCarBmp).unzip();
GZip(GetPathName(_L("carl1.dat"😉), (TUint8** &iCarBmpLeft1).unzip();
GZip(GetPathName(_L("carl2.dat"😉), (TUint8**)&iCarBmpLeft2).unzip();
GZip(GetPathName(_L("carr1.dat"😉), (TUint8**)&iCarBmpRight1).unzip();
GZip(GetPathName(_L("carr2.dat"😉), (TUint8**)&iCarBmpRight2).unzip();

produces the following Error;

NASCARENGINE.obj : error LNK2001: unresolved external symbol __chkstk \Symbian\7.0s\Series60_v21\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V21\NASCAR\GROUP\NASCAR\WINS\UDEB\NASCAR.APP : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link.exe' : return code '0x460'

I also tried the form GZip gz(...); gz.unzip(); and I still get the error. what is __chkstk? if I remove two of the statements the code compiles:


/*
GZip(GetPathName(_L("car.dat"😉), (TUint8**)&iCarBmp).unzip();
GZip(GetPathName(_L("carl1.dat"😉), (TUint8** &iCarBmpLeft1).unzip();
*/
GZip(GetPathName(_L("carl2.dat"😉), (TUint8**)&iCarBmpLeft2).unzip();
GZip(GetPathName(_L("carr1.dat"😉), (TUint8**)&iCarBmpRight1).unzip();
GZip(GetPathName(_L("carr2.dat"😉), (TUint8**)&iCarBmpRight2).unzip();

Also, if I comment all of the statements it compile as well. Why is it calling, what I assume is a microsoft library function, chkstk and how do I make this go away?

Thanks