delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/08/05/00:15:04

From: jbs30000 AT aol DOT com (Joel)
Newsgroups: comp.os.msdos.djgpp
Subject: Problems compiling an array.
Date: 4 Aug 2003 21:01:43 -0700
Organization: http://groups.google.com/
Lines: 46
Message-ID: <84e4e2a9.0308042001.6f4d7231@posting.google.com>
NNTP-Posting-Host: 172.158.4.161
X-Trace: posting.google.com 1060056103 808 127.0.0.1 (5 Aug 2003 04:01:43 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: 5 Aug 2003 04:01:43 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

The answer is probably very obvious, but I can't figure out why I get this error:

Compiling: ColorDat.cpp
svga/ColorDat.cpp(57) Error: excess elements in aggregate initializer
There were some errors

For this array.  All help is appreciated.  Thanks.

unsigned char Dither[5][6][5] = {
/* 000 001 002 003 004 005 010 011 012 013 014 015 020 021 022 023 024 025 */
    0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16, 17,
/* 030 031 032 033 034 035 040 041 042 043 044 045 050 051 052 053 054 055 */
   18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
/*                         060 061 062 063 064 065                         */
                           36, 37, 38, 39, 40, 41,
/* 100 101 102 103 104 105 110 111 112 113 114 115 120 121 122 123 124 125 */
   42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
/* 130 131 132 133 134 135 140 141 142 143 144 145 150 151 152 153 154 155 */
   60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
/*                         160 161 162 163 164 165                         */
                           78, 79, 80, 81, 82, 83,
/* 200 201 202 203 204 205 210 211 212 213 214 215 220 221 222 223 224 225 */
   84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100,101,
/* 230 231 232 233 234 235 240 241 242 243 244 245 250 251 252 253 254 255 */
   102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,
/*                         260 261 262 263 264 265                         */
                           120,121,122,123,124,125,
/* 300 301 302 303 304 305 310 311 312 313 314 315 320 321 322 323 324 325 */
   126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,
/* 330 331 332 333 334 335 340 341 342 343 344 345 350 351 352 353 354 355 */
   144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,
/*                         360 361 362 363 364 365                         */
                           162,163,164,165,166,167,
/* 400 401 402 403 404 405 410 411 412 413 414 415 420 421 422 423 424 425 */
   168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,
/* 430 431 432 433 434 435 440 441 442 443 444 445 450 451 452 453 454 455 */
   186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,
/*                         460 461 462 463 464 465                         */
                           204,205,206,207,208,209,
/* 500 501 502 503 504 505 510 511 512 513 514 515 520 521 522 523 524 525 */
   210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,
/* 530 531 532 533 534 535 540 541 542 543 544 545 550 551 552 553 554 555 */
   228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,
/*                         560 561 562 563 564 565                         */
                           246,247,248,249,250,251
};

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019