From: "Oliver Batchelor" Newsgroups: comp.os.msdos.djgpp Subject: Dat files... Undeclared variables ??? Why ?? (full source attached (v.small > 0.5k)) Date: 6 Jul 1998 06:27:56 GMT Organization: The World's Usenet -- http://www.Supernews.com Lines: 72 Message-ID: <01bda8a6$aaf28560$bf0562cb@dialup.voyager.co.nz> NNTP-Posting-Host: 203.98.5.191 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hello, I am making an editor for a game Im making and I started putting everything into dat files, but I have one problem. I have loaded the dat file correctly. It won't compile the following because it says there is an Undeclared variable when the variable is exacly the same as the name inside the dat file and I am doing exacly the same way as in example 12 and that works !!! (the full code is attached 1kb small) The pictures in the dat file are 16 bit compiled sprites (tiles) and the mouse image is a 16 bit bitmap. (It worked before I added dat files) draw_compiled_sprite(active_page, tiledata[LAND1_TGA].dat, x,y); ^ and draw_sprite(active_page, tiledata[MOUSE_BMP].dat, x,y); ^ | IT says undefined variable when the MOUSE_BMP and LAND_TGA are the same as the name in the dat file ! If that is not enough the full thing is attached ! > 0.5k thanks !!, Oliver Batchelor begin 600 Good2.c M#0H-"@T*#0HC:6YC;'5D92 \2QC+'-C"QS M8W)O;'D[#0H@("!"651%(&UA<%LQ,#!=6S$P,%TL('1O<&%I;G0[#0H@("!$ M051!1DE,12 J=&EL961A=&$[#0H-"FEN="!M86EN*"D-"GL-"@T*(" @('1O M<&%I;G0],S [#0H-"@T*(" @(&%L;&5G#TP.R!X/#$P,#L@>"LK*2![#0H@(" @(&9O M3TP.R!Y/#$P,#L@>2LK*2![#0H@(" @(&UA<%MX75MY73TQ.PT*(" @ M("!]?0T*#0H-"B @("!W:&EL92 H(6MB:&ET*"DI#0H@(" @>PT*(" @("!C M;&5A#TP*W-C M#L@>#PQ,BMS8W)O;'@[('@K*RD@>PT*(" @(" @9F]R("AY/3 K3L@>2LK*2![#0H-"@T*(" @(" @9')A=U]C;VUP M:6QE9%]S<')I=&4H86-T:79E7W!A9V4L('1I;&5D871A6U1)3$4Q7U1'05TN M9&%T+"!X+"!Y("D[#0H@(" @("!]?0T*#0H@(" @("!DPT*(" @ M(" @(" @:68H;6]U" \/2 R-# I('L-"B @(" @(" @(" @(" @("!I M9BAM;W5S95]Y(#P](#(T,"D@>PT*#0H@(" @(" @(" @(" @('@];6]U" O(#(P*W-C#L-"B @(" @(" @(" @(" @>3UM;W5S95]Y("\@,C K MPT*"2!S8W)O;&Q?5]B:71M87 H<&%G93(I.PT* M#0H@("!U;FQO861?9&%T869I;&4H=&EL961A=&$I.PT*#0H-"B @(')E='5R *;B P.PT*('T-"F1? ` end