[poppler] How to define _WIN32 flag?
Vincent Torri
vtorri at univ-evry.fr
Wed Sep 22 22:45:51 PDT 2010
On Wed, 22 Sep 2010, Paul. Z. Wu wrote:
>
> Could anyone tell me how to define the flag? I tried
>
> $ sh configure --build=i586-pc-mingw32 CXXFLAGS="-D_WIN32 -mwin32" CPPFLAGS="-mwin32 -D_WIN32" CFLAGS="-D_WIN32 -mwin32"
1) you don't have to define it. i586-pc-mingw32-gcc and
i586-pc-mingw32-g++ define it for you.
2) it's a preprocessor thing, so if you really want to define it, just add
it in CPPFLAGS, not in CXXFLAGS and CFLAGS.
So
./configure --host=i586-pc-mingw32
shoud work.
Vincent Torri
More information about the poppler
mailing list