Bug 91129 - Error in gfile.cc - GetFileSizeEx was not declared in this scope - MinGW / MSYS build
Summary: Error in gfile.cc - GetFileSizeEx was not declared in this scope - MinGW / MS...
Status: RESOLVED INVALID
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-27 18:23 UTC by testuser448
Modified: 2015-06-28 04:55 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description testuser448 2015-06-27 18:23:56 UTC
I 'git cloned' poppler and configured successfully:
Building poppler with support for:
  font configuration: win32
  splash output:      yes
  cairo output:       yes
  qt4 wrapper:        yes
  qt5 wrapper:        no
  glib wrapper:       yes
    introspection:    no
  cpp wrapper:        yes
  use gtk-doc:        no
  use libjpeg:        yes
  use libpng:         yes
  use libtiff:        yes
  use zlib:           no
  use libcurl:        yes
  use libopenjpeg:    yes
      with openjpeg2
  use cms:            yes
      with lcms2
  command line utils: yes

but make failed with:

$ make
make  all-recursive
make[1]: Entering directory `/c/users/testuser448/Downloads/poppler'
Making all in goo
make[2]: Entering directory `/c/users/testuser448/Downloads/poppler/goo'
  CXX    libgoo_la-gfile.lo
gfile.cc: In member function 'int GooFile::read(char*, int, Goffset) const':
gfile.cc:604:34: warning: missing braces around initializer for '_LARGE_INTEGER:
:<anonymous struct>' [-Wmissing-braces]
gfile.cc: In member function 'Goffset GooFile::size() const':
gfile.cc:615:37: warning: missing braces around initializer for '_LARGE_INTEGER:
:<anonymous struct>' [-Wmissing-braces]
gfile.cc:617:30: error: 'GetFileSizeEx' was not declared in this scope
make[2]: *** [libgoo_la-gfile.lo] Error 1
make[2]: Leaving directory `/c/users/testuser448/Downloads/poppler/goo'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/users/testuser448/Downloads/poppler'
make: *** [all] Error 2

My gcc version is 4.7.2.
Comment 1 testuser448 2015-06-28 04:55:24 UTC
I needed to #define _WIN32_WINNT = 0x0500 or greater.


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.