1 |
I have an application that needs to be build from source. It comes with |
2 |
a makefile (no configure script or anything like that.) At the end of |
3 |
the build process, linking fails with the error pasted at the end. |
4 |
|
5 |
How should the link command look for it to link against libpng 1.2 |
6 |
rather than 1.4? (I seem to have both installed.) |
7 |
|
8 |
gcc -rdynamic -o sfrotz -Xlinker -Map -Xlinker mymap.map buffer.o err.o |
9 |
fastmem.o files.o getopt.o hotkey.o input.o main.o math.o object.o |
10 |
process.o quetzal.o random.o redirect.o screen.o sound.o stream.o |
11 |
table.o text.o variable.o blorblib.o sf_resource.o sf_images.o |
12 |
sf_fonts.o sf_sound.o sf_util.o sf_video.o sf_msg_en.o sf_deffont.o |
13 |
sf_font3.o sf_ftype.o sf_osfdlg.o sf_sig.o sf_aiffwav.o sf_resample.o |
14 |
-ljpeg -lpng -lz -lSDL -lSDL_mixer -lsamplerate `freetype-config --libs` |
15 |
sf_images.o: In function `loadpng.clone.1': |
16 |
sf_images.c:(.text+0x711): undefined reference to `png_set_gray_1_2_4_to_8' |