mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
They don't work for me (on Debian bullseye). For example, from the example/sdl-imageviewer directory: $ make g++ -lSDL2 -lSDL2_image sdl-imageviewer.cc -o sdl-imageviewer /usr/bin/ld: /tmp/cciX1mj2.o: in function `draw(SDL_Window*)': sdl-imageviewer.cc:(.text+0x36e44): undefined reference to `SDL_GetWindowSurface' /usr/bin/ld: sdl-imageviewer.cc:(.text+0x36e69): undefined reference to `SDL_CreateRenderer' /usr/bin/ld: sdl-imageviewer.cc:(.text+0x36e79): undefined reference to `SDL_RenderClear' etc collect2: error: ld returned 1 exit status make: *** [<builtin>: sdl-imageviewer] Error 1 Swapping the g++ args around to g++ sdl-imageviewer.cc -lSDL2 -lSDL2_image -o sdl-imageviewer works, but the recommended approach is to use the existing top-level build-example.sh script instead.
This directory contains example programs that use Wuffs the
Library. See Hello wuffs-c for
an example program that uses Wuffs the Language
and its wuffs-c compiler.
Other than the toy-* examples, all of these programs do real work. They're
not just programming language toys at the "calculate the Fibonacci sequence"
level of triviality. For example, the example/crc32
and example/zcat programs are roughly equivalent to
Debian Linux's /usr/bin/crc32 and /bin/zcat programs.