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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...