Compilation error on Ubuntu 18.04 WSL2 w/ GCC 7.4.0
reesetaylor opened this issue · 1 comments
reesetaylor commented
make cc src/main.c src/decompress.c src/zap.c -ounzap -Wall -Wpadded -std=c11 -march=native -O2 src/main.c: In function ‘main’: src/main.c:40:6: warning: ‘path’ may be used uninitialized in this function [-Wmaybe-uninitialized] if ((b = zap_open(path)) == NULL) { ^ src/zap.c: In function ‘zap_open’: src/zap.c:236:5: error: ‘MAP_FILE’ undeclared (first use in this function); did you mean ‘MAP_FAILED’? MAP_FILE|MAP_PRIVATE, ^~~~~~~~ MAP_FAILED src/zap.c:236:5: note: each undeclared identifier is reported only once for each function it appears in Makefile:7: recipe for target 'unzap' failed make: *** [unzap] Error 1
any help with this would be appreciated, thanks :)
milehighguy-dev commented
Reporting same issue