From: <reg...@ra...> - 2006-05-23 01:19:39
|
I am trying to compile vv-tools, but I get the following errors: The following is the result when I use the original makefile: gcc -I/usr/lib/ViaVoice/include -Ismapi toggle-microphone.c -o toggle-microphone toggle-microphone.c In function 'main': toggle-microphone.c:42 warning: incompatible implicit declaration of built-in function 'exit' toggle-microphone.c:48 warning: incompatible implicit declaration of built-in function 'exit' toggle-microphone.c:54 warning: incompatible implicit declaration of built-in function 'exit' toggle-microphone.c:60 warning: incompatible implicit declaration of built-in function 'exit' toggle-microphone.c:65 warning: incompatible implicit declaration of built-in function 'exit' toggle-microphone.c:69 warning: incompatible implicit declaration of built-in function 'exit' toggle-microphone.c:75 warning: incompatible implicit declaration of built-in function 'exit' toggle-microphone.c:83 warning: incompatible implicit declaration of built-in function 'exit' /usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: cannot find -lsmapi Collect2: ld returned 1 exit status make: *** [toggle-microphone] Error 1 If I change the makefile, so that -lsmapi (-small L) is change to -Ismapi ( capital I) or a capital -L, I have the following result: gcc -I/usr/lib/ViaVoice/include -Ismapi toggle-microphone.c -o toggle-microphone toggle-microphone.c In function 'main': toggle-microphone.c:42 warning: incompatible implicit declaration of built-in function 'exit' toggle-microphone.c:48 warning: incompatible implicit declaration of built-in function 'exit' toggle-microphone.c:54 warning: incompatible implicit declaration of built-in function 'exit' toggle-microphone.c:60 warning: incompatible implicit declaration of built-in function 'exit' toggle-microphone.c:65 warning: incompatible implicit declaration of built-in function 'exit' toggle-microphone.c:69 warning: incompatible implicit declaration of built-in function 'exit' toggle-microphone.c:75 warning: incompatible implicit declaration of built-in function 'exit' toggle-microphone.c:83 warning: incompatible implicit declaration of built-in function 'exit' tmp/ccUOoRlk.o: In function 'main': toggle-microphone.c:(.test+0x4a): undefined reference to 'SmOpen' toggle-microphone.c:(.test+0xa8): undefined reference to 'SmConnect'* *toggle-microphone.c:(.test+0xe1): undefined reference to 'SmSet' toggle-microphone.c:(.test+0x118): undefined reference to 'SmReceiveMsg' toggle-microphone.c:(.test+0x151): undefined reference to 'SmGetMsgType' toggle-microphone.c:(.test+0x1b0): undefined reference to 'SmGetMicState' toggle-microphone.c:(.test+0x1ec): undefined reference to 'SmRequestMicOff' toggle-microphone.c:(.test+0x200): undefined reference to 'SmRequestMicOn' Collect2: ld returned 1 exit status make: *** [toggle-microphone] Error 1 $PATH=/usr/local/ViaVoice/bin:/usr/local/ViaVoice/lib/IBMJava-131-jre/bin:/ etc. $LD_LIBRARY_PATH=//usr/local/ViaVoice/lib/usr-lib:/usr/lib:/lib I am using SuSE 10.0 with: gcc-4.0.2_20050901-3 gcc-fortran-4.0.2_20050901-3 libgcc-4.0.2_20050901-3 gcc-c++-4.0.2_20050901-3 Can someone suggest what I need to change to get vv-tools to compile? Thanks Dave Just going to church doesn't make you a Christian, any more than standing in a garage makes you a car. |