Author
anonymous
almost 7 years ago
Language
C++
Compiler
gcc 8.1.0
Options
Warnings
Boost 1.67.0
C++2a(GNU)
no pedantic
Author
anonymous
almost 7 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/gcc-8.1.0/include -std=gnu++2a
prog.cc: In function 'int main(int, char**)':
prog.cc:17:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char **argv)
~~~~^~~~
prog.cc:17:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
~~~~~~~^~~~
/tmp/cczSsCjM.o: In function `getDirectoryList(std::filesystem::__cxx11::path&)':
prog.cc:(.text+0xe1): undefined reference to `std::filesystem::__cxx11::directory_iterator::operator*() const'
prog.cc:(.text+0x131): undefined reference to `std::filesystem::__cxx11::directory_iterator::operator++()'
/tmp/cczSsCjM.o: In function `std::filesystem::__cxx11::directory_iterator::directory_iterator(std::filesystem::__cxx11::path const&)':
prog.cc:(.text._ZNSt10filesystem7__cxx1118directory_iteratorC2ERKNS0_4pathE[_ZNSt10filesystem7__cxx1118directory_iteratorC5ERKNS0_4pathE]+0x26): undefined reference to `std::filesystem::__cxx11::directory_iterator::directory_iterator(std::filesystem::__cxx11::path const&, std::filesystem::directory_options, std::error_code*)'
collect2: error: ld returned 1 exit status
Exit Code:
1