The FontMetrics dummy class was in the wrong namespace. Linking on linux
did work because the GNU linker is more clever than the MSVC linker for this
particular example and throws out more unused code, so that theFontMetrics was
not referenced at all.
// Dummy FontMetrics (needed by Length)
//
// Dummy FontMetrics (needed by Length)
//
class FontMetrics {
int em() const { return 0; };
};
class FontMetrics {
int em() const { return 0; };
};
-FontMetrics const & theFontMetrics(FontInfo const &) {
- static FontMetrics dummy;
+frontend::FontMetrics const & theFontMetrics(FontInfo const &) {
+ static frontend::FontMetrics dummy;