I know it is a long time, but to close it out since there was a recent bump.
$ gcc main.c -lSDL But $ $ gcc main.c -lSDL -m32 /usr/bin/ld: cannot find -lSDL collect2: error: ld returned 1 exit status So much as reported. # install libs $ sudo dpkg --add-architecture i386 $ sudo apt update $ sudo apt-get install libsdl1.2-dev:i386 $ gcc main.c -lSDL -m32 # Working fine now. Likely no one cares anyway, but I wanted to document the right solution. ** Changed in: libsdl1.2 (Ubuntu) Status: Confirmed => Opinion ** Changed in: libsdl1.2 (Ubuntu) Status: Opinion => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1481440 Title: multi-arch ld cannot find -lSDL or -LSDL-1.2 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libsdl1.2/+bug/1481440/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs