Wierd compiler errors
I'm trying to make a library called librtk and I get the following error:
../librtk/librtk.a(motion_est_mmx.o)(.text+0x9d3): In function `pix_abs8x8_xy2_mmx2': i386/motion_est_mmx.c:118: undefined reference to `bone' ../librtk/librtk.a(motion_est_mmx.o)(.text+0xcf3): In function `pix_abs16x16_xy2_mmx2': i386/motion_est_mmx.c:118: undefined reference to `bone' ../librtk/librtk.a(motion_est_mmx.o)(.text+0xd73):i386/motion_est_mmx.c:118: undefined reference to `bone' ../librtk/librtk.a(simple_idct_mmx.o)(.text+0x24): In function `ff_simple_idct_mmx': i386/simple_idct_mmx.c:209: undefined reference to `wm1010' ../librtk/librtk.a(simple_idct_mmx.o)(.text+0x120):i386/simple_idct_mmx.c:209: undefined reference to `d40000' ../librtk/librtk.a(simple_idct_mmx.o)(.text+0x1de4): In function `ff_simple_idct_put_mmx': i386/simple_idct_mmx.c:209: undefined reference to `wm1010' ../librtk/librtk.a(simple_idct_mmx.o)(.text+0x1ee0):i386/simple_idct_mmx.c:209: undefined reference to `d40000' ../librtk/librtk.a(simple_idct_mmx.o)(.text+0x3bc4): In function `ff_simple_idct_add_mmx': i386/simple_idct_mmx.c:209: undefined reference to `wm1010' ../librtk/librtk.a(simple_idct_mmx.o)(.text+0x3cc0):i386/simple_idct_mmx.c:209: undefined reference to `d40000' collect2: ld returned 1 exit status I've googled and the only promising post said to use an older version of gcc, I've tried both 3.4.3 and 3.2.3 with the same error. If its a dependency problem, I cant figure out what it needs. This is really annoying - I've been trying for days to get it installed now - any help much appreciated, |
That's not a compiler error, that's a linker error.
Most likely either a name-mangling problem or a plain type somewhere ;0 ... impossible to assess from that output alone, though. We'd need to see how it's invoked, and if THAT doesn't show any- thing obvious then we'd need to see the code. Cheers, Tink |
Dave, I am receiving the exact same errors.
Have you been able to rectify the problem? Any help would be much appreciated. Cheers. |
If you're building librtk for player and gazebo then apparently (I'm just working through this myself) you don't need libavcodec which is causing the problems so use:
Quote:
|
All times are GMT -5. The time now is 12:58 AM. |