- Code: Select all
# gcc -I../include list_voices.c
/tmp/cc8QDUJT.o: In function `main':
list_voices.c:(.text+0xeb): undefined reference to `swift_engine_open'
list_voices.c:(.text+0x121): undefined reference to `swift_port_open'
list_voices.c:(.text+0x17c): undefined reference to `swift_port_close'
list_voices.c:(.text+0x18c): undefined reference to `swift_engine_close'
/tmp/cc8QDUJT.o: In function `list_voices':
list_voices.c:(.text+0x1c2): undefined reference to `swift_port_find_first_voice'
list_voices.c:(.text+0x20a): undefined reference to `swift_voice_get_attribute'
list_voices.c:(.text+0x22f): undefined reference to `swift_voice_get_attribute'
list_voices.c:(.text+0x240): undefined reference to `swift_voice_get_attribute'
list_voices.c:(.text+0x251): undefined reference to `swift_voice_get_attribute'
list_voices.c:(.text+0x262): undefined reference to `swift_voice_get_attribute'
/tmp/cc8QDUJT.o:list_voices.c:(.text+0x273): more undefined references to `swift_voice_get_attribute' follow
/tmp/cc8QDUJT.o: In function `list_voices':
list_voices.c:(.text+0x2a2): undefined reference to `swift_port_find_next_voice'
collect2: ld returned 1 exit status
The shared libs are in /opt/swift/lib which is in my ld.so.conf file. I've run ldconfig again...
I've been messing with this for hours and tried everything I can think of.... It seems like this isn't a missing library so much as a the way the libraries are linked or something.
Any suggestions?