Bug 11557 - Undefined reference to winFontDir
Summary: Undefined reference to winFontDir
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-12 05:45 UTC by Émilien Tlapale
Modified: 2007-07-13 11:07 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Émilien Tlapale 2007-07-12 05:45:01 UTC
Hi!
Thanks for you reactivity, I am still in the process on cross compiling poppler for Windows using mingw. Anyway, there is a reference to a symbol ``winFontDir`` in GlobalParams::setBaseDir (file ./poppler/GlobalParams.cc). Moreover this function seems not to be used anywhere in the code (I just did a grep).
Thanks!
Comment 1 Albert Astals Cid 2007-07-12 13:27:50 UTC
Can you try this?

Index: GlobalParams.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/GlobalParams.cc,v
retrieving revision 1.23
diff -u -r1.23 GlobalParams.cc
--- GlobalParams.cc     11 Jul 2007 18:12:27 -0000      1.23
+++ GlobalParams.cc     12 Jul 2007 20:27:18 -0000
@@ -810,12 +810,6 @@
 void GlobalParams::setBaseDir(char *dir) {
   delete baseDir;
   baseDir = new GooString(dir);
-
-#ifdef WIN32
-  if (winFontDir[0]) {
-    winFontList = new WinFontList(winFontDir);
-  }
-#endif
 }

 //------------------------------------------------------------------------
Comment 2 Émilien Tlapale 2007-07-13 01:27:06 UTC
Yes, removing the lines works (no one uses this function anyway). Appart from that I got undefined references to `_EnumFontsA@16' while running make in utils/. I think (but it may be my fault) that some -lgdi32 are missing (adding them allow to compile the .exe).
Comment 3 Albert Astals Cid 2007-07-13 11:07:13 UTC
Ok, closing the bug then, feel free to open a bug with patches to fix your link problems.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.