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)
//
-
+namespace frontend {
class FontMetrics {
int em() const { return 0; };
};
+}
class FontInfo;
-FontMetrics const & theFontMetrics(FontInfo const &) {
- static FontMetrics dummy;
+frontend::FontMetrics const & theFontMetrics(FontInfo const &) {
+ static frontend::FontMetrics dummy;
return dummy;
}