tat / mimetic

mimetic is a free, MIT licensed, Email library (MIME) written in C++ designed to be easy to use and integrate but yet fast and efficient.
http://www.codesink.org/mimetic_mime_library.html
MIT License
37 stars 33 forks source link

Build issue of consumers with gcc13 #28

Open heirecka opened 1 year ago

heirecka commented 1 year ago

Like some new versions before it, GCC 13 moves around some internal includes and <stdint.h>/<cstdint> seem no longer transitively included. This becomes a problem when building trojita for example:

/usr/x86_64-pc-linux-gnu/include/mimetic/rfc822/messageid.h:29:23: error: expected ')' before 'thread_id'
   29 |     MessageId(uint32_t thread_id = 0 );
      |              ~        ^~~~~~~~~~
      |                       )

Even though messageid.h includes <stdint.h>, it does so behind a #ifdef HAVE_STDINT_H, which isn't defined anywhere in the installed headers.

lukem commented 9 months ago

I haven't noticed this using g++ 13.1.1 (on RHEL 8) with missing /

I did experience various build warnings (especially with -Wall), which I fixed in various commits in pull request #30 .