01 Build and link

The release archive contains abi/include/stardust.h and the native libraries in abi/lib. Set STARDUST_RELEASE to the absolute path of the extracted release. Save the example below as evaluate.c. On Linux x86-64, build and run it with:

cc -std=c11 -Wall -Wextra -Werror \
  -I"$STARDUST_RELEASE/abi/include" evaluate.c \
  -L"$STARDUST_RELEASE/abi/lib" -l:libstardust-linux-amd64.so \
  -Wl,-rpath,"$STARDUST_RELEASE/abi/lib" -o abi-evaluate
./abi-evaluate

The runtime search path points to the release library directory. Choose the library for your target platform when using a different release target.