invalid conversion from `void*' to "constRGB"
zenofeller_

i get these errors when trying to use a variable inited as

   replace_filename(datafile_name, argv[0], "running.dat",
        sizeof(datafile_name));
   running_data = load_datafile(datafile_name);

as a parameter to set_palette

 set_palette(running_data[PALETTE_001].dat);

both the running.h and running.dat are available. going to eat, will be back hunting the buggie. if anybody has a quick comment you'd save me a lot of grief. i have a feeling it's something trivial. thanks.

Thomas Fjellstrom

Sounds like you're using C++?

set_palette((RGB*)running_data[PALETTE_001].dat);

That should fix it in C and C++, or for C++ only,

set_palette(static_cast<RGB*>(running_data[PALETTE_001].dat));

it may or may not need the "const" before the RGBs.

zenofeller_

ay! right, allegro is c. thanks :)

Thread #590228. Printed from Allegro.cc