speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[C++ Project] Problem linking the library


From: Giorgio Stefanoni
Subject: [C++ Project] Problem linking the library
Date: Thu, 3 Apr 2008 16:46:29 +0200

Hi everyone,

I am developing a C++ project that involves text-to-speech issues. I've 
decided to use the speech-dispatcher library,
but I am facing linking problems. I'm including the library in an header 
file, which is then included in other files.
This results with these compilation errors:

    Invoking: GCC C++ Compiler
    g++ `wx-config --cxxflags` -O3 -Wall -c -fmessage-length=0 -MMD -MP
    -MF"src/reader/Reader.d" -MT"src/reader/Reader.d"
    -o"src/reader/Reader.o" "../src/reader/Reader.cpp"
    Finished building: ../src/reader/Reader.cpp
     
    Building target: MyTalkativeComputer
    Invoking: GCC C++ Linker
    g++ `wx-config --libs`  -o"MyTalkativeComputer" 
    ./src/ui/MainFrame.o ./src/ui/MyTalkativeComputer.o 
    ./src/reader/Reader.o   -lspeechd
    ./src/ui/MyTalkativeComputer.o:(.bss+0x0): multiple definition of
    `spd_debug'
    ./src/ui/MainFrame.o:(.bss+0x0): first defined here
    ./src/reader/Reader.o:(.bss+0x0): multiple definition of `spd_debug'
    ./src/ui/MainFrame.o:(.bss+0x0): first defined here
    collect2: ld returned 1 exit status
    make: *** [MyTalkativeComputer] Error 1

Did you already face this problem? Do you know how to fix it?

Thanks a lot,

Giorgio



reply via email to

[Prev in Thread] Current Thread [Next in Thread]