serge-sans-paille / frozen

a header-only, constexpr alternative to gperf for C++14 users
Apache License 2.0
1.31k stars 104 forks source link

Error when compiling the examples in the released version 1.0.0 #118

Closed tetsuhaut closed 3 years ago

tetsuhaut commented 3 years ago

Hi, When trying to compile I had this error:

$ cmake -G "MinGW Makefiles" -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=./toto frozen-1.0.0
$ mingw32-make
[...]
C:\SOURCES\lib\frozen\frozen-1.0.0\examples\enum_to_string.cpp: In function 'int main()':
C:\SOURCES\lib\frozen\frozen-1.0.0\examples\enum_to_string.cpp:169:3: error: 'puts' was not declared in this scope
  169 |   puts(enum_to_string(RELOC_i386::R_386_8));
      |   ^~~~
[...]

It seems the file examples/enum_to_string.cpp misses some #includes.

tetsuhaut commented 3 years ago

Trying the master version it seems the error has been fixed. Great! Maybe you could do a patch release? Thanks for your lib anyway :)

serge-sans-paille commented 3 years ago

1.0.1 tagged !