hoene / libmysofa

Reader for AES SOFA files to get better HRTFs
Other
137 stars 73 forks source link

"error: unknown type name ‘size_t’" in 1.3 #191

Closed stefantalpalaru closed 2 years ago

stefantalpalaru commented 2 years ago
[1/22] /usr/bin/x86_64-pc-linux-gnu-gcc -Dmysofa_shared_EXPORTS   -O3 -march=native -mno-lwp -pipe -Wall -fPIC -fvisibility=hidden -std=gnu99 -MD -MT src/CMakeFiles/mysofa-shared.dir/hdf/superblock.c.o -MF src/CMakeFiles/mysofa-shared.dir/hdf/superblock.c.o.d -o src/CMakeFiles/mysofa-shared.dir/hdf/superblock.c.o -c /var/tmp/portage/media-libs/libmysofa-1.3/work/libmysofa-1.3/src/hdf/superblock.c
FAILED: src/CMakeFiles/mysofa-shared.dir/hdf/superblock.c.o 
/usr/bin/x86_64-pc-linux-gnu-gcc -Dmysofa_shared_EXPORTS   -O3 -march=native -mno-lwp -pipe -Wall -fPIC -fvisibility=hidden -std=gnu99 -MD -MT src/CMakeFiles/mysofa-shared.dir/hdf/superblock.c.o -MF src/CMakeFiles/mysofa-shared.dir/hdf/superblock.c.o.d -o src/CMakeFiles/mysofa-shared.dir/hdf/superblock.c.o -c /var/tmp/portage/media-libs/libmysofa-1.3/work/libmysofa-1.3/src/hdf/superblock.c
In file included from /var/tmp/portage/media-libs/libmysofa-1.3/work/libmysofa-1.3/src/hdf/reader.h:10,
                 from /var/tmp/portage/media-libs/libmysofa-1.3/work/libmysofa-1.3/src/hdf/superblock.c:7:
/var/tmp/portage/media-libs/libmysofa-1.3/work/libmysofa-1.3/src/hdf/../hrtf/mysofa.h:130:56: error: unknown type name ‘size_t’
  130 | struct MYSOFA_HRTF *mysofa_load_data(const char *data, size_t size, int *err);
      |                                                        ^~~~~~
/var/tmp/portage/media-libs/libmysofa-1.3/work/libmysofa-1.3/src/hdf/../hrtf/mysofa.h:15:1: note: ‘size_t’ is defined in header ‘<stddef.h>’; did you forget to ‘#include <stddef.h>’?
   14 | #include <stdint.h>
  +++ |+#include <stddef.h>
   15 | 
hoene commented 2 years ago

@stefantalpalaru fixed

wader commented 2 years ago

Hi, will there be a minor release with this fix soonish?

hoene commented 2 years ago

https://github.com/hoene/libmysofa/releases/tag/v1.3.1

wader commented 2 years ago

👍 thanks!