Just installed SDL2 in linux opensuse, and tried to make a shared library project in codeblocks, I used this:

My sdl2-config --cflags --libs output is:
-I/usr/include/SDL2 -D_REENTRANT
-L/usr/lib64 -lSDL2

So I added
I/usr/include/SDL2 to the build options ->  search directory -> compiler
and 
/usr/lib64 to the build options ->  search directory -> linker

and  -lSDL2 to build options -> linker settings -> other linker options

then I tried to compile it and give me this error:

error: ld returned 1 exit status
Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s))

How can I fix it?