Menu

#5 Compiling error with devkitPPC 29

New
nobody
compilation (1)
Medium
Defect
2017-10-19
2017-03-30
No

I get this error compiling from SVN

crc32c.c
/media/hdd/Wii/libext2fs-wii/source/./crc32c.c:379:10: error: conflicting types for 'ext2fs_crc32c_le'
 uint32_t ext2fs_crc32c_le(uint32_t crc, unsigned char const *p, size_t len)
          ^~~~~~~~~~~~~~~~
In file included from /media/hdd/Wii/libext2fs-wii/source/./crc32c.c:43:0:
/media/hdd/Wii/libext2fs-wii/source/./ext2fs.h:922:14: note: previous declaration of 'ext2fs_crc32c_le' was here
 extern __u32 ext2fs_crc32c_le(__u32 crc, unsigned char const *p, size_t len);
              ^~~~~~~~~~~~~~~~
/media/hdd/Wii/libext2fs-wii/source/./crc32c.c:420:10: error: conflicting types for 'ext2fs_crc32c_be'
 uint32_t ext2fs_crc32c_be(uint32_t crc, unsigned char const *p, size_t len)
          ^~~~~~~~~~~~~~~~
In file included from /media/hdd/Wii/libext2fs-wii/source/./crc32c.c:43:0:
/media/hdd/Wii/libext2fs-wii/source/./ext2fs.h:921:14: note: previous declaration of 'ext2fs_crc32c_be' was here
 extern __u32 ext2fs_crc32c_be(__u32 crc, unsigned char const *p, size_t len);

I have replaced u32 with uint32_t but I don't know if is the correct aproach

Discussion


Log in to post a comment.

MongoDB Logo MongoDB