linuxlinkercodeblocksespeak

How to add "-lespeak" to codeblocks?


I use Ubuntu 16.04 and it's gedit editor to codding. I can compile my programs with espeak library used within, by adding -lespeak at the end of compile command like this on Linux terminal: g++ -o myapp myapp.cpp -lespeak , But I don't know how should I add what files to codeblocks for espeak?


Solution

  • Navigate: Workspace -> Your-Project -> Build options -> Linker settings -> Other linker options. Add -lespeak. OK out. Build