Когда я компилируюсь с этой командой "g ++ test3.cpp -o test3.cgi" < /em> с использованием cygwin i получаю эту ошибку: < /p>
Код: Выделить всё
test3.cpp:7:10: fatal error: cgicc/CgiDefs.h: No such file or directory
7 | #include
| ^~~~~~~~~~~~~~~~~
compilation terminated.
Код: Выделить всё
/usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/ld: /tmp/ccPwnaVS.o:test3.cpp:(.text+0x23): undefined reference to `cgicc::Cgicc::Cgicc(cgicc::CgiInput*)'
/usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/ld: /tmp/ccPwnaVS.o:test3.cpp:(.text+0xfb): undefined reference to `cgicc::Cgicc::getElement(std::string const&)'
/usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/ld: /tmp/ccPwnaVS.o:test3.cpp:(.text+0x26f): undefined reference to `cgicc::Cgicc::getElement(std::string const&)'
/usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/ld: /tmp/ccPwnaVS.o:test3.cpp:(.text+0x3e4): undefined reference to `cgicc::Cgicc::~Cgicc()'
/usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/ld: /tmp/ccPwnaVS.o:test3.cpp:(.text+0x472): undefined reference to `cgicc::Cgicc::~Cgicc()'
collect2: error: ld returned 1 exit status
Подробнее здесь: https://stackoverflow.com/questions/794 ... d-libcgicc