Jump to content

Undefined references while compiling - SOLVED


alexpank
 Share

Recommended Posts

Yes, it's me again, but I'm not going off half-cocked like usual (I hope).

 

I'm trying to compile kinput2 to work with the canna and FreeWnn servers, but the computer goes along fine, and then suddenly does this:

gcc -o kinput2 -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce      -L/usr/X11R6/lib kinput2.o ../lib/libKi2.a ../lib/imlib/libim.a    -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11
../lib/libKi2.a(Canna.o): In function `InputEvent':
Canna.o(.text+0x13a): undefined reference to `wcKanjiString'
../lib/libKi2.a(Canna.o): In function `displayPreEdit':
Canna.o(.text+0x258): undefined reference to `wcKanjiControl'
Canna.o(.text+0x26f): undefined reference to `wcKanjiControl'
Canna.o(.text+0x287): undefined reference to `wcKanjiControl'
../lib/libKi2.a(Canna.o): In function `Destroy':
Canna.o(.text+0x595): undefined reference to `wcKanjiControl'
Canna.o(.text+0x5e2): undefined reference to `wcKanjiControl'
../lib/libKi2.a(Canna.o)(.text+0xf6e): more undefined references to `wcKanjiControl' follow
../lib/libKi2.a(Canna.o): In function `initializeCannaConnection':
Canna.o(.text+0x1ead): undefined reference to `jrBeepFunc'
Canna.o(.text+0x1ef4): undefined reference to `wcKanjiControl'
Canna.o(.text+0x1f10): undefined reference to `wcKanjiControl'
collect2: ld returned 1 exit status
make[1]: *** [kinput2] Error 1
make[1]: Leaving directory `/usr/local/src/kinput2-v3.1/cmd'
make: *** [all] Error 2

 

Checking on Google only turned up some patches that I don't think apply (I'm still a newbie, so they might, though), but nothing concerning these actual error messages. I looked at the code of Canna.c, and when I eventually learn some programming I might be able to make some kinda sense of it :unsure: I'm using the most recent version of Kinput2, if that's relevant.

 

What do the error messages I get mean exactly? Can anyone point me in the right direction to fix them? Also, can anyone help me identify what I should look for in a patch to fix this?

 

Thanks

Alex

 

EDIT: I'm not sure if it's obvious to savants or not, but a document I found said that wcKanjiControl and so on are user interface library API's. Is this relevant at all?

Edited by alexpank
Link to comment
Share on other sites

Sorry I hadn't marked this off, but I found the solution - it was looking for the libraries in the wrong place. A little tinkering to point it in the right direction, and everything worked fine.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...