i'm struggling in the attept to compile c++ with SDL2. I've done as always:
- checkout the code (both from mercurial and libsdl.org)
- ./configure, make, sudo make install
But it keeps to say:
/usr/bin/ld: error: cannot find -lSDL2
I need to get working on my source code quickly and on 13.04 and 13.10 these operations always led me to working libs. Now back on 12.04 something strange is happening. Also the make install instructions said:
Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf'
can someone please elaborate a little bit on these instructions, since i don't seem to get it?
echoing both variables shows they're empty, also i'm on a 64 bit version of 12.04 (it must matter since on both 13.04/13.10 no problems at all)