Path: chuka.playstation.co.uk!news From: rs108@mdx.ac.uk (Robert Swan) Newsgroups: scee.yaroze.freetalk.english Subject: I need help too... Date: Sat, 02 May 1998 04:05:08 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 40 Message-ID: <354a9b68.19948433@www.netyaroze-europe.com> NNTP-Posting-Host: stu-dialup15.mdx.ac.uk X-Newsreader: Forte Free Agent 1.11/32.235 Im sure this is sooooo dumb, yet... Im trying to get the code to allow me to dynamically create tmds to work. there seems to be just one problem though, and seeing as my knowledge of ansi c and error messages is terrible, i was wondering if anyone could help me overcome this compile time error i get. // **** Global variables #define SizeTMD_Header (sizeof(TMD_Header)) #define SizeTMD_Object (sizeof(TMD_Object)) #define SizePRIM_Header (sizeof(PRIM_Header)) #define SizeTMD_3_Flat (sizeof(TMD_3_Flat)) #define SizeVertex (sizeof(Vertex)) #define SizeNormal (sizeof(Normal)) #define SizePadding (20) const int SizeWorkSpace = SizeTMD_Header + SizeTMD_Object + SizePRIM_Header + SizeTMD_3_Flat + (SizeVertex*4) + (SizeNormal*4) + SizePadding; static u_char WorkSpace[SizeWorkSpace]; // error here but this leads to the error as follows - variable-size type declared outside of any function I think I know what this means, but surely it shouldnt happen when Im defining the size of the array based on a const? Im sure this is a really simple problem, and I hope you can help! Robert Swan rs108@mdx.ac.uk http://www.netyaroze-europe.com/~middex2