Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MinGW32 compilation #24

Closed
shirat74 opened this issue Oct 13, 2014 · 2 comments
Closed

MinGW32 compilation #24

shirat74 opened this issue Oct 13, 2014 · 2 comments

Comments

@shirat74
Copy link

I am trying to build Hummus PDF Writer on MinGW32/WIndows 7 with gcc version 4.8.1.

Compiler complained about undefined sprintf_s, so I changed

#ifdef  WIN32

to

#if defined(WIN32) && defined(_MSC_VER)

in SafeBufferMacrosDefs.h.

And also, as there are no fseeko and ftello available on my MinGW32 system, I inserted

    #ifdef __MINGW32__
    #define fseeko fseeko64
    #define ftello ftello64
    #endif

in SafeBufferMacrosDefs.h.

With the above changes, I could successfully build Hummus PDF Writer and some sample
programs I made are working but I haven't tested extensively yet.

I am not sure if I am doing correct thing so I'd appreciate it if you could comment on this.
Thanks.

@galkahana
Copy link
Owner

Hi.
Thanks for your note.

The released version does not take care of mingw32, however in more recent commit issues were taken care of and mingw32 is a supported compile env.
see 259e4c1

you can pull the code from here and compile.

Regards,
Gal.

@shirat74
Copy link
Author

I tried the latest from the repository and it worked fine.
Thank you.

ignogueiras added a commit to Gradiant/PDF-Writer that referenced this issue Jul 29, 2020
…to master

* commit '88fb1e1d86070b438779faade824bbe5d69c9ccd':
  Initialization of several variables to avoid bad jumps
  Fix fpic flag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants