TomHarte/CLK

Implicit instantiation of undefined templates

Closed this issue · 1 comments

I can't build the latest code from master using Xcode 14.2 on macOS Monterey 12.7.1 because of these errors:

Machines/PCCompatible/DMA.hpp:192:26 Implicit instantiation of undefined template 'std::array<PCCompatible::i8237::Channel, 4>'
Machines/PCCompatible/Memory.hpp:134:34 Implicit instantiation of undefined template 'std::array<unsigned char, 1048576>'

on these lines:

std::array<Channel, 4> channels_;

std::array<uint8_t, 1024*1024> memory{0xff};

I'm surprised GCC didn't pick up on this stuff in continuous integration; it's usually really good at my forgotten #includes.