[Cppcms-users] Help setting up hello_world on Code::Blocks
Brought to you by:
artyom-beilis
From: Rui C. <rui...@gm...> - 2012-11-19 19:58:34
|
Hey all, I'm new to C++ and Code::Blocks and I'm trying to set up the hello_world example on Code::Blocks, but I'm getting "undefined references" to cppcms stuff.. I've try adding "-lcppcms -lbooster" to the compiler options under "Project build > Compiler Settings > Other options". I've also added "/usr/local/lib" to the Linker Search Directories. These are the errors I get: -------------- Build: Debug in first_test --------------- Linking console executable: bin/Debug/first_test obj/Debug/hello.o: In function `my_hello_world::main(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)': /home/rvc/Documents/Dev/first_test/hello.cpp:18: undefined reference to `cppcms::application::response()' /home/rvc/Documents/Dev/first_test/hello.cpp:18: undefined reference to `cppcms::http::response::out()' obj/Debug/hello.o: In function `main': /home/rvc/Documents/Dev/first_test/hello.cpp:29: undefined reference to `cppcms::service::service(int, char**)' ..... and so on... Any help or tip is welcome :) Thanks, Rui Coelho |