aardappel / lobster

The Lobster Programming Language
http://strlen.com/lobster
2.25k stars 119 forks source link

music.c: Fails to compile with empty union. #205

Closed dbaileychess closed 1 year ago

dbaileychess commented 1 year ago

Grabbed the latest source and try to build on Windows (VS 2022, Release X64) and it fails to compile with:

lobster\dev\external\SDLMixer\music.c(120,5): error C2016: C requires that a struct or union have at least one member

Appears I don't have any of these defined that leads to the empty union. I can probably get the necessary files, but either the Docs should specify how, or something is not included correctly by default.

Steps:

git clone 
cd dev
cmake -DCMAKE_BUILD_TYPE=Release

Opened dev/Lobster.sln in VS2022, switched to Release and Rebuilt Solution

aardappel commented 1 year ago

Don't use CMake on Windows.. there's an already made VS solution in dev/lobster that has lots of custom flags set that aren't in CMake (never tried building with that on Windows).

See also: https://aardappel.github.io/lobster/getting_started.html