Skip to content

Instantly share code, notes, and snippets.

@haruki7049
Created February 17, 2026 03:21
Show Gist options
  • Select an option

  • Save haruki7049/33c1eb32109a038058613a81904d2cda to your computer and use it in GitHub Desktop.

Select an option

Save haruki7049/33c1eb32109a038058613a81904d2cda to your computer and use it in GitHub Desktop.
[nix-shell:~/program-dir/CPLn]$ INC_LIB=$(pkg-config --cflags --libs python3 sdl2 SDL2_ttf)
[nix-shell:~/program-dir/CPLn]$ echo $INC_LIB
-D_THREAD_SAFE -I/nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9/include/python3.13 -I/nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include -I/nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include/SDL2 -I/nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0/include/SDL2 -L/nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9/lib -L/nix/store/a5ybsxyliwbay8lxx4994xinr2jw079z-sdl2-compat-2.32.58/lib -L/nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0/lib -lSDL2_ttf -lSDL2main -lSDL2 -Wl,-framework,Cocoa
[nix-shell:~/program-dir/CPLn]$ cc -v *.c -o CPLn $INC_LIB -lm
clang version 21.1.2
Target: arm64-apple-darwin
Thread model: posix
InstalledDir: /nix/store/w5wjc54p5cgl4cr1mfkd3lisnaiszaq7-clang-21.1.2/bin
"/nix/store/w5wjc54p5cgl4cr1mfkd3lisnaiszaq7-clang-21.1.2/bin/clang-21" -cc1 -triple arm64-apple-macosx14.0.0 -O2 -Wundef-prefix=TARGET_OS_ -Werror=undef-prefix -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -dumpdir CPLn- -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CPLnVer0.M.c -mrelocation-model pic -pic-level 2 -mframe-pointer=all -ffp-contract=on -fno-rounding-math -funwind-tables=1 -target-sdk-version=14.4 -fcompatibility-qualified-id-block-type-checking -fvisibility-inlines-hidden-static-local-var -fbuiltin-headers-in-system-modules -fdefine-target-os-macros -enable-tlsdesc -target-cpu apple-m1 -target-feature +v8.4a -target-feature +aes -target-feature +altnzcv -target-feature +ccdp -target-feature +ccpp -target-feature +complxnum -target-feature +crc -target-feature +dotprod -target-feature +flagm -target-feature +fp-armv8 -target-feature +fp16fml -target-feature +fptoint -target-feature +fullfp16 -target-feature +jsconv -target-feature +lse -target-feature +neon -target-feature +pauth -target-feature +perfmon -target-feature +predres -target-feature +ras -target-feature +rcpc -target-feature +rdm -target-feature +sb -target-feature +sha2 -target-feature +sha3 -target-feature +specrestrict -target-feature +ssbs -target-abi darwinpcs -debugger-tuning=lldb -fdebug-compilation-dir=/Users/haruki/program-dir/CPLn -target-linker-version 954.16 -v -fcoverage-compilation-dir=/Users/haruki/program-dir/CPLn -resource-dir /nix/store/qk20nysrc2170f1mal5k6r0axqn6jmfj-clang-wrapper-21.1.2/resource-root -idirafter /nix/store/s82vpbg467vmlcjf5yb3zq7qa390pprf-libSystem-B/include -isystem /nix/store/1a05xixrdmk175drdln3w047x3dxfr7l-libcxx-19.1.2+apple-sdk-15.5/include -isystem /nix/store/nmphg2wj8almcssbm8wgzd34q0bmv4c2-compiler-rt-libc-21.1.2-dev/include -isystem /nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9/include -isystem /nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include -isystem /nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0/include -isystem /nix/store/wwhxjbysdz2nlzggimqwwf5jpmz3lq4g-libiconv-109.100.2-dev/include -isystem /nix/store/z7nvv4i2bj0qizr09ghp7wd4dj9n95r2-libresolv-91-dev/include -isystem /nix/store/xa9fcilmkxzpfdqn4bb7biqcxl2qmxi7-libsbuf-14.1.0-dev/include -isystem /nix/store/1a05xixrdmk175drdln3w047x3dxfr7l-libcxx-19.1.2+apple-sdk-15.5/include -isystem /nix/store/nmphg2wj8almcssbm8wgzd34q0bmv4c2-compiler-rt-libc-21.1.2-dev/include -isystem /nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9/include -isystem /nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include -isystem /nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0/include -isystem /nix/store/wwhxjbysdz2nlzggimqwwf5jpmz3lq4g-libiconv-109.100.2-dev/include -isystem /nix/store/z7nvv4i2bj0qizr09ghp7wd4dj9n95r2-libresolv-91-dev/include -isystem /nix/store/xa9fcilmkxzpfdqn4bb7biqcxl2qmxi7-libsbuf-14.1.0-dev/include -cxx-isystem /nix/store/1a05xixrdmk175drdln3w047x3dxfr7l-libcxx-19.1.2+apple-sdk-15.5/include/c++/v1 -isysroot /nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -D _LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -U _FORTIFY_SOURCE -D _THREAD_SAFE -I /nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9/include/python3.13 -I /nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include -I /nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include/SDL2 -I /nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0/include/SDL2 -U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=2 -internal-isystem /nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/local/include -internal-isystem /nix/store/qk20nysrc2170f1mal5k6r0axqn6jmfj-clang-wrapper-21.1.2/resource-root/include -internal-externc-isystem /nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -internal-iframework /nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks -internal-iframework /nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/SubFrameworks -internal-iframework /nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks -fmacro-prefix-map=/nix/store/s82vpbg467vmlcjf5yb3zq7qa390pprf-libSystem-B/include=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libSystem-B/include -fmacro-prefix-map=/nix/store/1a05xixrdmk175drdln3w047x3dxfr7l-libcxx-19.1.2+apple-sdk-15.5=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libcxx-19.1.2+apple-sdk-15.5 -fmacro-prefix-map=/nix/store/nmphg2wj8almcssbm8wgzd34q0bmv4c2-compiler-rt-libc-21.1.2-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-compiler-rt-libc-21.1.2-dev -fmacro-prefix-map=/nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-python3-3.13.9 -fmacro-prefix-map=/nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sdl2-compat-2.32.58-dev -fmacro-prefix-map=/nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-SDL2_ttf-2.24.0 -fmacro-prefix-map=/nix/store/wwhxjbysdz2nlzggimqwwf5jpmz3lq4g-libiconv-109.100.2-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libiconv-109.100.2-dev -fmacro-prefix-map=/nix/store/z7nvv4i2bj0qizr09ghp7wd4dj9n95r2-libresolv-91-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libresolv-91-dev -fmacro-prefix-map=/nix/store/xa9fcilmkxzpfdqn4bb7biqcxl2qmxi7-libsbuf-14.1.0-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libsbuf-14.1.0-dev -fmacro-prefix-map=/nix/store/1a05xixrdmk175drdln3w047x3dxfr7l-libcxx-19.1.2+apple-sdk-15.5=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libcxx-19.1.2+apple-sdk-15.5 -fmacro-prefix-map=/nix/store/nmphg2wj8almcssbm8wgzd34q0bmv4c2-compiler-rt-libc-21.1.2-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-compiler-rt-libc-21.1.2-dev -fmacro-prefix-map=/nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-python3-3.13.9 -fmacro-prefix-map=/nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sdl2-compat-2.32.58-dev -fmacro-prefix-map=/nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-SDL2_ttf-2.24.0 -fmacro-prefix-map=/nix/store/wwhxjbysdz2nlzggimqwwf5jpmz3lq4g-libiconv-109.100.2-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libiconv-109.100.2-dev -fmacro-prefix-map=/nix/store/z7nvv4i2bj0qizr09ghp7wd4dj9n95r2-libresolv-91-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libresolv-91-dev -fmacro-prefix-map=/nix/store/xa9fcilmkxzpfdqn4bb7biqcxl2qmxi7-libsbuf-14.1.0-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libsbuf-14.1.0-dev -fmacro-prefix-map=/nix/store/1a05xixrdmk175drdln3w047x3dxfr7l-libcxx-19.1.2+apple-sdk-15.5/include/c++/v1=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libcxx-19.1.2+apple-sdk-15.5/include/c++/v1 -source-date-epoch 315532800 -Wformat -Wformat-security -Werror=format-security -Werror=unguarded-availability -ferror-limit 19 -fmessage-length=114 -fzero-call-used-regs=used-gpr -fwrapv -stack-protector 2 -stack-protector-buffer-size 4 -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fmax-type-align=16 -fcolor-diagnostics -vectorize-loops -vectorize-slp -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /private/tmp/nix-shell-41407-2145491247/CPLnVer0-541dad.o -x c CPLnVer0.M.c
clang -cc1 version 21.1.2 based upon LLVM 21.1.2 default target arm64-apple-darwin25.2.0
ignoring nonexistent directory "/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/local/include"
ignoring nonexistent directory "/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/SubFrameworks"
ignoring nonexistent directory "/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks"
ignoring duplicate directory "/nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include"
as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "/nix/store/1a05xixrdmk175drdln3w047x3dxfr7l-libcxx-19.1.2+apple-sdk-15.5/include"
ignoring duplicate directory "/nix/store/nmphg2wj8almcssbm8wgzd34q0bmv4c2-compiler-rt-libc-21.1.2-dev/include"
ignoring duplicate directory "/nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9/include"
ignoring duplicate directory "/nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include"
ignoring duplicate directory "/nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0/include"
ignoring duplicate directory "/nix/store/wwhxjbysdz2nlzggimqwwf5jpmz3lq4g-libiconv-109.100.2-dev/include"
ignoring duplicate directory "/nix/store/z7nvv4i2bj0qizr09ghp7wd4dj9n95r2-libresolv-91-dev/include"
ignoring duplicate directory "/nix/store/xa9fcilmkxzpfdqn4bb7biqcxl2qmxi7-libsbuf-14.1.0-dev/include"
#include "..." search starts here:
#include <...> search starts here:
/nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9/include/python3.13
/nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include/SDL2
/nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0/include/SDL2
/nix/store/1a05xixrdmk175drdln3w047x3dxfr7l-libcxx-19.1.2+apple-sdk-15.5/include
/nix/store/nmphg2wj8almcssbm8wgzd34q0bmv4c2-compiler-rt-libc-21.1.2-dev/include
/nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9/include
/nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include
/nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0/include
/nix/store/wwhxjbysdz2nlzggimqwwf5jpmz3lq4g-libiconv-109.100.2-dev/include
/nix/store/z7nvv4i2bj0qizr09ghp7wd4dj9n95r2-libresolv-91-dev/include
/nix/store/xa9fcilmkxzpfdqn4bb7biqcxl2qmxi7-libsbuf-14.1.0-dev/include
/nix/store/qk20nysrc2170f1mal5k6r0axqn6jmfj-clang-wrapper-21.1.2/resource-root/include
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks (framework directory)
/nix/store/s82vpbg467vmlcjf5yb3zq7qa390pprf-libSystem-B/include
End of search list.
CPLnVer0.M.c:140:3: error: typedef redefinition with different types ('struct Coord'
(aka 'Coord') vs 'struct Coord')
140 | } Coord;
| ^
CPLnVer0.M.c:44:22: note: previous definition is here
44 | typedef struct Coord Coord;
| ^
CPLnVer0.M.c:155:1: error: type name requires a specifier or qualifier
155 | renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED);
| ^
CPLnVer0.M.c:155:9: error: expected ';' at end of declaration list
155 | renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED);
| ^
| ;
CPLnVer0.M.c:157:1: error: type name requires a specifier or qualifier
157 | texture = SDL_CreateTexture(
| ^
CPLnVer0.M.c:157:8: error: expected ';' at end of declaration list
157 | texture = SDL_CreateTexture(
| ^
| ;
CPLnVer0.M.c:164:3: error: typedef redefinition with different types ('struct (unnamed struct
at CPLnVer0.M.c:142:9)' vs 'struct GMState')
164 | } GMState;
| ^
CPLnVer0.M.c:45:24: note: previous definition is here
45 | typedef struct GMState GMState;
| ^
CPLnVer0.M.c:169:14: error: expected parameter declarator
169 | SDL_Init(SDL_INIT_VIDEO);
| ^
/nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include/SDL2/SDL.h:85:33: note:
expanded from macro 'SDL_INIT_VIDEO'
85 | #define SDL_INIT_VIDEO 0x00000020u /**< SDL_INIT_VIDEO implies SDL_INIT_EVENTS */
| ^
CPLnVer0.M.c:169:14: error: expected ')'
/nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include/SDL2/SDL.h:85:33: note:
expanded from macro 'SDL_INIT_VIDEO'
85 | #define SDL_INIT_VIDEO 0x00000020u /**< SDL_INIT_VIDEO implies SDL_INIT_EVENTS */
| ^
CPLnVer0.M.c:169:13: note: to match this '('
169 | SDL_Init(SDL_INIT_VIDEO);
| ^
CPLnVer0.M.c:169:5: error: type specifier missing, defaults to 'int'; ISO C99 and later do
not support implicit int [-Wimplicit-int]
169 | SDL_Init(SDL_INIT_VIDEO);
| ^
| int
CPLnVer0.M.c:169:5: warning: a function declaration without a prototype is deprecated in all
versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration
[-Wdeprecated-non-prototype]
/nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include/SDL2/SDL.h:145:29: note:
conflicting prototype is here
145 | extern DECLSPEC int SDLCALL SDL_Init(Uint32 flags);
| ^
CPLnVer0.M.c:171:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do
not support implicit int [-Wimplicit-int]
171 | window = SDL_CreateWindow(
| ^
| int
CPLnVer0.M.c:171:1: error: redefinition of 'window' with a different type: 'int' vs
'SDL_Window *' (aka 'struct SDL_Window *')
CPLnVer0.M.c:167:17: note: previous definition is here
167 | SDL_Window* window;
| ^
CPLnVer0.M.c:189:3: error: typedef redefinition with different types ('struct CPLnGroup'
(aka 'CPLnGroup') vs 'struct CPLnGroup')
189 | } CPLnGroup;
| ^
CPLnVer0.M.c:46:26: note: previous definition is here
46 | typedef struct CPLnGroup CPLnGroup;
| ^
CPLnVer0.M.c:195:5: error: unknown type name 'TokenType'
195 | TokenType type;
| ^
CPLnVer0.M.c:204:3: error: typedef redefinition with different types ('struct (unnamed struct
at CPLnVer0.M.c:200:9)' vs 'struct Lexer')
204 | } Lexer;
| ^
CPLnVer0.M.c:192:22: note: previous definition is here
192 | typedef struct Lexer Lexer;
| ^
CPLnVer0.M.c:216:28: error: array has incomplete element type 'Coord' (aka 'struct Coord')
216 | Coord coords[MAX_COORD][MAX_COORD];
| ^
CPLnVer0.M.c:44:16: note: forward declaration of 'struct Coord'
44 | typedef struct Coord Coord;
| ^
CPLnVer0.M.c:218:13: error: field has incomplete type 'GMState' (aka 'struct GMState')
218 | GMState gm;
| ^
CPLnVer0.M.c:45:16: note: forward declaration of 'struct GMState'
45 | typedef struct GMState GMState;
| ^
CPLnVer0.M.c:221:21: error: array has incomplete element type 'CPLnGroup'
(aka 'struct CPLnGroup')
221 | CPLnGroup groups[MAX_GROUPS];
| ^
CPLnVer0.M.c:46:16: note: forward declaration of 'struct CPLnGroup'
46 | typedef struct CPLnGroup CPLnGroup;
| ^
CPLnVer0.M.c:237:3: error: typedef redefinition with different types ('struct (unnamed struct
at CPLnVer0.M.c:206:13)' vs 'struct CPLnEngine')
237 | } CPLnEngine;
| ^
CPLnVer0.M.c:47:27: note: previous definition is here
47 | typedef struct CPLnEngine CPLnEngine;
| ^
CPLnVer0.M.c:311:25: error: invalid application of 'sizeof' to an incomplete type 'ASTNode'
(aka 'struct ASTNode')
311 | ASTNode* n = malloc(sizeof(ASTNode));
| ^ ~~~~~~~~~
CPLnVer0.M.c:48:16: note: forward declaration of 'struct ASTNode'
48 | typedef struct ASTNode ASTNode;
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
"/nix/store/w5wjc54p5cgl4cr1mfkd3lisnaiszaq7-clang-21.1.2/bin/clang-21" -cc1 -triple arm64-apple-macosx14.0.0 -O2 -Wundef-prefix=TARGET_OS_ -Werror=undef-prefix -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -dumpdir CPLn- -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name maincpln.c -mrelocation-model pic -pic-level 2 -mframe-pointer=all -ffp-contract=on -fno-rounding-math -funwind-tables=1 -target-sdk-version=14.4 -fcompatibility-qualified-id-block-type-checking -fvisibility-inlines-hidden-static-local-var -fbuiltin-headers-in-system-modules -fdefine-target-os-macros -enable-tlsdesc -target-cpu apple-m1 -target-feature +v8.4a -target-feature +aes -target-feature +altnzcv -target-feature +ccdp -target-feature +ccpp -target-feature +complxnum -target-feature +crc -target-feature +dotprod -target-feature +flagm -target-feature +fp-armv8 -target-feature +fp16fml -target-feature +fptoint -target-feature +fullfp16 -target-feature +jsconv -target-feature +lse -target-feature +neon -target-feature +pauth -target-feature +perfmon -target-feature +predres -target-feature +ras -target-feature +rcpc -target-feature +rdm -target-feature +sb -target-feature +sha2 -target-feature +sha3 -target-feature +specrestrict -target-feature +ssbs -target-abi darwinpcs -debugger-tuning=lldb -fdebug-compilation-dir=/Users/haruki/program-dir/CPLn -target-linker-version 954.16 -v -fcoverage-compilation-dir=/Users/haruki/program-dir/CPLn -resource-dir /nix/store/qk20nysrc2170f1mal5k6r0axqn6jmfj-clang-wrapper-21.1.2/resource-root -idirafter /nix/store/s82vpbg467vmlcjf5yb3zq7qa390pprf-libSystem-B/include -isystem /nix/store/1a05xixrdmk175drdln3w047x3dxfr7l-libcxx-19.1.2+apple-sdk-15.5/include -isystem /nix/store/nmphg2wj8almcssbm8wgzd34q0bmv4c2-compiler-rt-libc-21.1.2-dev/include -isystem /nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9/include -isystem /nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include -isystem /nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0/include -isystem /nix/store/wwhxjbysdz2nlzggimqwwf5jpmz3lq4g-libiconv-109.100.2-dev/include -isystem /nix/store/z7nvv4i2bj0qizr09ghp7wd4dj9n95r2-libresolv-91-dev/include -isystem /nix/store/xa9fcilmkxzpfdqn4bb7biqcxl2qmxi7-libsbuf-14.1.0-dev/include -isystem /nix/store/1a05xixrdmk175drdln3w047x3dxfr7l-libcxx-19.1.2+apple-sdk-15.5/include -isystem /nix/store/nmphg2wj8almcssbm8wgzd34q0bmv4c2-compiler-rt-libc-21.1.2-dev/include -isystem /nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9/include -isystem /nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include -isystem /nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0/include -isystem /nix/store/wwhxjbysdz2nlzggimqwwf5jpmz3lq4g-libiconv-109.100.2-dev/include -isystem /nix/store/z7nvv4i2bj0qizr09ghp7wd4dj9n95r2-libresolv-91-dev/include -isystem /nix/store/xa9fcilmkxzpfdqn4bb7biqcxl2qmxi7-libsbuf-14.1.0-dev/include -cxx-isystem /nix/store/1a05xixrdmk175drdln3w047x3dxfr7l-libcxx-19.1.2+apple-sdk-15.5/include/c++/v1 -isysroot /nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -D _LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -U _FORTIFY_SOURCE -D _THREAD_SAFE -I /nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9/include/python3.13 -I /nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include -I /nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include/SDL2 -I /nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0/include/SDL2 -U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=2 -internal-isystem /nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/local/include -internal-isystem /nix/store/qk20nysrc2170f1mal5k6r0axqn6jmfj-clang-wrapper-21.1.2/resource-root/include -internal-externc-isystem /nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -internal-iframework /nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks -internal-iframework /nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/SubFrameworks -internal-iframework /nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks -fmacro-prefix-map=/nix/store/s82vpbg467vmlcjf5yb3zq7qa390pprf-libSystem-B/include=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libSystem-B/include -fmacro-prefix-map=/nix/store/1a05xixrdmk175drdln3w047x3dxfr7l-libcxx-19.1.2+apple-sdk-15.5=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libcxx-19.1.2+apple-sdk-15.5 -fmacro-prefix-map=/nix/store/nmphg2wj8almcssbm8wgzd34q0bmv4c2-compiler-rt-libc-21.1.2-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-compiler-rt-libc-21.1.2-dev -fmacro-prefix-map=/nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-python3-3.13.9 -fmacro-prefix-map=/nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sdl2-compat-2.32.58-dev -fmacro-prefix-map=/nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-SDL2_ttf-2.24.0 -fmacro-prefix-map=/nix/store/wwhxjbysdz2nlzggimqwwf5jpmz3lq4g-libiconv-109.100.2-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libiconv-109.100.2-dev -fmacro-prefix-map=/nix/store/z7nvv4i2bj0qizr09ghp7wd4dj9n95r2-libresolv-91-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libresolv-91-dev -fmacro-prefix-map=/nix/store/xa9fcilmkxzpfdqn4bb7biqcxl2qmxi7-libsbuf-14.1.0-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libsbuf-14.1.0-dev -fmacro-prefix-map=/nix/store/1a05xixrdmk175drdln3w047x3dxfr7l-libcxx-19.1.2+apple-sdk-15.5=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libcxx-19.1.2+apple-sdk-15.5 -fmacro-prefix-map=/nix/store/nmphg2wj8almcssbm8wgzd34q0bmv4c2-compiler-rt-libc-21.1.2-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-compiler-rt-libc-21.1.2-dev -fmacro-prefix-map=/nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-python3-3.13.9 -fmacro-prefix-map=/nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sdl2-compat-2.32.58-dev -fmacro-prefix-map=/nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-SDL2_ttf-2.24.0 -fmacro-prefix-map=/nix/store/wwhxjbysdz2nlzggimqwwf5jpmz3lq4g-libiconv-109.100.2-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libiconv-109.100.2-dev -fmacro-prefix-map=/nix/store/z7nvv4i2bj0qizr09ghp7wd4dj9n95r2-libresolv-91-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libresolv-91-dev -fmacro-prefix-map=/nix/store/xa9fcilmkxzpfdqn4bb7biqcxl2qmxi7-libsbuf-14.1.0-dev=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libsbuf-14.1.0-dev -fmacro-prefix-map=/nix/store/1a05xixrdmk175drdln3w047x3dxfr7l-libcxx-19.1.2+apple-sdk-15.5/include/c++/v1=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libcxx-19.1.2+apple-sdk-15.5/include/c++/v1 -source-date-epoch 315532800 -Wformat -Wformat-security -Werror=format-security -Werror=unguarded-availability -ferror-limit 19 -fmessage-length=114 -fzero-call-used-regs=used-gpr -fwrapv -stack-protector 2 -stack-protector-buffer-size 4 -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fmax-type-align=16 -fcolor-diagnostics -vectorize-loops -vectorize-slp -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /private/tmp/nix-shell-41407-2145491247/maincpln-a07b1d.o -x c maincpln.c
clang -cc1 version 21.1.2 based upon LLVM 21.1.2 default target arm64-apple-darwin25.2.0
ignoring nonexistent directory "/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/local/include"
ignoring nonexistent directory "/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/SubFrameworks"
ignoring nonexistent directory "/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks"
ignoring duplicate directory "/nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include"
as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "/nix/store/1a05xixrdmk175drdln3w047x3dxfr7l-libcxx-19.1.2+apple-sdk-15.5/include"
ignoring duplicate directory "/nix/store/nmphg2wj8almcssbm8wgzd34q0bmv4c2-compiler-rt-libc-21.1.2-dev/include"
ignoring duplicate directory "/nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9/include"
ignoring duplicate directory "/nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include"
ignoring duplicate directory "/nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0/include"
ignoring duplicate directory "/nix/store/wwhxjbysdz2nlzggimqwwf5jpmz3lq4g-libiconv-109.100.2-dev/include"
ignoring duplicate directory "/nix/store/z7nvv4i2bj0qizr09ghp7wd4dj9n95r2-libresolv-91-dev/include"
ignoring duplicate directory "/nix/store/xa9fcilmkxzpfdqn4bb7biqcxl2qmxi7-libsbuf-14.1.0-dev/include"
#include "..." search starts here:
#include <...> search starts here:
/nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9/include/python3.13
/nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include/SDL2
/nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0/include/SDL2
/nix/store/1a05xixrdmk175drdln3w047x3dxfr7l-libcxx-19.1.2+apple-sdk-15.5/include
/nix/store/nmphg2wj8almcssbm8wgzd34q0bmv4c2-compiler-rt-libc-21.1.2-dev/include
/nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9/include
/nix/store/bjz0g06vi7vq04hcq8iwam3q15r167zm-sdl2-compat-2.32.58-dev/include
/nix/store/f5ia8hrwwx89dcsvc4aj7pdlw9piicn4-SDL2_ttf-2.24.0/include
/nix/store/wwhxjbysdz2nlzggimqwwf5jpmz3lq4g-libiconv-109.100.2-dev/include
/nix/store/z7nvv4i2bj0qizr09ghp7wd4dj9n95r2-libresolv-91-dev/include
/nix/store/xa9fcilmkxzpfdqn4bb7biqcxl2qmxi7-libsbuf-14.1.0-dev/include
/nix/store/qk20nysrc2170f1mal5k6r0axqn6jmfj-clang-wrapper-21.1.2/resource-root/include
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks (framework directory)
/nix/store/s82vpbg467vmlcjf5yb3zq7qa390pprf-libSystem-B/include
End of search list.
In file included from maincpln.c:10:
In file included from ./globalbuild.h:44:
In file included from /nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:96:
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_sa_family_t.h:31:1: error:
type name does not allow storage class to be specified
31 | typedef __uint8_t sa_family_t;
| ^
In file included from maincpln.c:10:
In file included from ./globalbuild.h:44:
In file included from /nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:97:
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_socklen_t.h:31:1: error:
type name does not allow storage class to be specified
31 | typedef __darwin_socklen_t socklen_t;
| ^
In file included from maincpln.c:10:
In file included from ./globalbuild.h:44:
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:297:1: error:
type name does not allow storage class to be specified
297 | typedef __uint32_t sae_associd_t;
| ^
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:301:1: error:
type name does not allow storage class to be specified
301 | typedef __uint32_t sae_connid_t;
| ^
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:314:2: error:
unknown type name 'socklen_t'
314 | socklen_t sae_srcaddrlen; /* size of source address */
| ^
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:316:2: error:
unknown type name 'socklen_t'
316 | socklen_t sae_dstaddrlen; /* size of destination address */
| ^
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:311:1: error:
type name does not allow storage class to be specified
311 | typedef struct sa_endpoints {
| ^
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:418:2: error:
unknown type name 'sa_family_t'
418 | sa_family_t sa_family; /* [XSI] address family */
| ^
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:430:2: error:
unknown type name 'sa_family_t'
430 | sa_family_t sa_family;
| ^
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:462:2: error:
unknown type name 'sa_family_t'
462 | sa_family_t ss_family; /* [XSI] address family */
| ^
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:463:36: error:
use of undeclared identifier 'sa_family_t'
463 | char __ss_pad1[_SS_PAD1SIZE];
| ^~~~~~~~~~~~
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:452:54: note:
expanded from macro '_SS_PAD1SIZE'
452 | (_SS_ALIGNSIZE - sizeof(__uint8_t) - sizeof(sa_family_t))
| ^~~~~~~~~~~
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:465:36: error:
use of undeclared identifier 'sa_family_t'
465 | char __ss_pad2[_SS_PAD2SIZE];
| ^~~~~~~~~~~~
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:454:52: note:
expanded from macro '_SS_PAD2SIZE'
454 | (_SS_MAXSIZE - sizeof(__uint8_t) - sizeof(sa_family_t) - \
| ^~~~~~~~~~~
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:465:36: error:
use of undeclared identifier 'sa_family_t'
465 | char __ss_pad2[_SS_PAD2SIZE];
| ^~~~~~~~~~~~
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:455:26: note:
expanded from macro '_SS_PAD2SIZE'
455 | _SS_PAD1SIZE - _SS_ALIGNSIZE)
| ^~~~~~~~~~~~
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:452:54: note:
expanded from macro '_SS_PAD1SIZE'
452 | (_SS_ALIGNSIZE - sizeof(__uint8_t) - sizeof(sa_family_t))
| ^~~~~~~~~~~
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:570:2: error:
unknown type name 'socklen_t'
570 | socklen_t msg_namelen; /* [XSI] size of address */
| ^
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:574:2: error:
unknown type name 'socklen_t'
574 | socklen_t msg_controllen; /* [XSI] ancillary data buffer len */
| ^
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:617:2: error:
unknown type name 'socklen_t'
617 | socklen_t cmsg_len; /* [XSI] data byte count, including hdr */
| ^
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:720:51: error:
unknown type name 'socklen_t'
720 | int accept(int, struct sockaddr * __restrict, socklen_t * __restrict)
| ^
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:720:74: error:
expected ';' at end of declaration list
720 | int accept(int, struct sockaddr * __restrict, socklen_t * __restrict)
| ^
/nix/store/npzkc6q10x37mb969v8c19klfsghb70l-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:722:54: error:
expected ';' at end of declaration list
722 | int bind(int, const struct sockaddr *, socklen_t) __DARWIN_ALIAS(bind);
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[nix-shell:~/program-dir/CPLn]$
diff --git a/CPLnVer0.M.c b/CPLnVer0.M.c
index e42b8d6..5d7ff0d 100644
--- a/CPLnVer0.M.c
+++ b/CPLnVer0.M.c
@@ -26,7 +26,7 @@ SOFTWARE.
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
-#include <python.h> //Python呼び出し用
+#include <python3.13/Python.h> //Python呼び出し用
#include <SDL2/SDL.h> // グラフィックス用
#include <stdint.h>
#include <math.h> // 冒頭に追加
diff --git a/globalbuild.h b/globalbuild.h
index 74b3e73..ed6c6f1 100644
--- a/globalbuild.h
+++ b/globalbuild.h
@@ -27,12 +27,11 @@ SOFTWARE.
#include <string.h>
#include <ctype.h>
#define HAVE_ROUND
-#include <Python.h> //python呼び出し用
-#include "SDL.h" // <SDL2/SDL.h> から変更
+#include <python3.13/Python.h> //python呼び出し用
+#include <SDL2/SDL.h>
#include <stdint.h>
#include <math.h>
-#include "SDL_ttf.h" // <SDL2/SDL_ttf.h> から変更
-#include "winsock2.h"
+#include <SDL2/SDL_ttf.h>
#ifndef CPLN_ENGINE_STRUCT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment