Closed ZackeryRSmith closed 4 months ago
With the exception of the no newline at end of file error, this probably would belong as an issue in the cxxopt repo
This actually is a Hexdump issue. Or it may be directly related with how g++ works. If you read the error messages it talks about how x feature is a C++11 extension or a c++17 extension. This means you must compile with the flag -std=c++17
. Doing this gives separate issues though:
❯ make
mkdir -p bin
g++ -Wall -Werror -Wpedantic -std=c++17 -O3 -I lib -I include src/hexdump.cpp src/log.cpp -o bin/hex
src/hexdump.cpp:212:5: error: 'sprintf' is deprecated: This function is provided for compatibility re
sprintf(offset_str, "%08X", offset);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has be
__deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns"
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:218:48: note: expanded fr
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
src/hexdump.cpp:225:13: error: 'sprintf' is deprecated: This function is provided for compatibility r
sprintf(byte_str, "%02X", buffer[i]);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has be
__deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns"
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:218:48: note: expanded fr
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
2 errors generated.
make: *** [build] Error 1
New Zig version compiles with Zig 0.12.0 on MacOS Sonoma
Describe the bug I am unable to compile Hexdump's [release branch]() on my MacOS Sonoma laptop.
To Reproduce Steps to reproduce the behavior:
git clone git clone https://github.com/KeithBrown39423/Hexdump
cd Hexdump
make
Expected behavior A successful compiled Hexdump binary
Desktop: