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.
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.