
bichodope
(usa Arch Linux)
Enviado em 13/09/2018 - 21:23h
Olá, como faço para resolver esse problema: Instalei a biblioteca cgi, porém o programa não compila, mostrando essas mensagens:
/tmp/cc27vvzj.o: In function `main':
cpp_get.cpp:(.text+0x1c): undefined reference to `cgicc::Cgicc::Cgicc(cgicc::CgiInput*)'
cpp_get.cpp:(.text+0xb9): undefined reference to `cgicc::Cgicc::getElement(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
cpp_get.cpp:(.text+0xf5): undefined reference to `cgicc::FormEntry::isEmpty() const'
cpp_get.cpp:(.text+0x10b): undefined reference to `cgicc::Cgicc::operator*() const'
cpp_get.cpp:(.text+0x17a): undefined reference to `cgicc::FormEntry::operator*[abi:cxx11]() const'
cpp_get.cpp:(.text+0x206): undefined reference to `cgicc::Cgicc::getElement(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
cpp_get.cpp:(.text+0x23c): undefined reference to `cgicc::FormEntry::isEmpty() const'
cpp_get.cpp:(.text+0x252): undefined reference to `cgicc::Cgicc::operator*() const'
cpp_get.cpp:(.text+0x2bb): undefined reference to `cgicc::FormEntry::operator*[abi:cxx11]() const'
cpp_get.cpp:(.text+0x342): undefined reference to `cgicc::Cgicc::~Cgicc()'
cpp_get.cpp:(.text+0x3c7): undefined reference to `cgicc::Cgicc::~Cgicc()'
collect2: error: ld returned 1 exit status
Estou seguindo esse texto aqui:
https://www.tutorialspoint.com/cplusplus/cpp_web_programming.htm
Mais espeficamente onde demostra o primeiro código com método get.