Comment 2 for bug 1481440

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

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.