討論區: ヘルプ (Thread #34521)

Compiling on Linux - Can't Link libm.so.6 (2013-09-20 15:51 by David V #70271)

Hi there,

I been trying to compile under Linux and this is the error I got:

gcc -g separate-core.o separate-gui.o separate-export.o util.o tiff.o psd.o jpeg.o iccbutton.o lcms_wrapper.o -o separate `pkg-config gimp-2.0 --libs` `pkg-config gimpui-2.0 --libs` `pkg-config gtk+-2.0 --libs` `pkg-config lcms --libs` -ltiff -ljpeg
/usr/bin/ld: separate-core.o: undefined reference to symbol 'pow@@GLIBC_2.0'
/usr/bin/ld: note: 'pow@@GLIBC_2.0' is defined in DSO /lib/i386-linux-gnu/libm.so.6 so try adding it to the linker command line
/lib/i386-linux-gnu/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [separate] Error 1

When I opened the Make file, I can't find any reference to symbol 'pow@@GLIBC_2.0' as mentioned, what should I do to add the DSO path to the linker command?

p/s: I am compiling 0.5.8 under 32-bit Ubuntu Linux 13.04

回覆 #70271×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登入