Make编译报错,make error
LostYuyuko opened this issue · comments
/mnt/hgfs/sjt/SimpleNES/src/PPU.cpp:181:93: error: no matching function for call to ‘sf::Color::Color(const Uint32&)’
m_pictureBuffer[x][y] = sf::Color(colors[m_bus.readPalette(paletteAddr)]);
Try updating to the latest SFML. That constructor exists: https://github.com/SFML/SFML/blob/eb321b304058786967e28fb57bf324f26887be2f/include/SFML/Graphics/Color.hpp#L70