Hi.
I've tried to compile in Debian 9 using gcc/g++ in versions: 6.3, 4.9, 4.8 and clang 3.4, but show many errors.
See:
make: Entering directory '/home/usuario/where2cpp/whereami-wip-cpp/_gnu-make'
mkdir -p /home/usuario/where2cpp/whereami-wip-cpp/bin/linux-x86_64
mkdir -p /home/usuario/where2cpp/whereami-wip-cpp/bin/linux-x86_64
mkdir -p /home/usuario/where2cpp/whereami-wip-cpp/bin/linux-x86_64
g++ -x c++ -I /home/usuario/where2cpp/whereami-wip-cpp/src -O2 -g -Wall -pedantic -Werror -Wshadow -Wuseless-cast -fpic /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp /home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp -ldl -shared -o /home/usuario/where2cpp/whereami-wip-cpp/bin/linux-x86_64/library-cxx.so
g++ -std=c++11 -x c++ -I /home/usuario/where2cpp/whereami-wip-cpp/src -O2 -g -Wall -pedantic -Werror -Wshadow -Wuseless-cast -fpic /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp /home/usuario/where2cpp/whereami-wip-cpp/example/executable.cpp -ldl -o /home/usuario/where2cpp/whereami-wip-cpp/bin/linux-x86_64/executable-cxx11
g++ -std=c++03 -x c++ -I /home/usuario/where2cpp/whereami-wip-cpp/src -O2 -g -Wall -pedantic -Werror -Wshadow -Wuseless-cast -fpic /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp /home/usuario/where2cpp/whereami-wip-cpp/example/executable.cpp -ldl -o /home/usuario/where2cpp/whereami-wip-cpp/bin/linux-x86_64/executable-cxx
In file included from /usr/include/c++/6/stdlib.h:36:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:23,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/c++/6/cstdlib:124:11: error: ‘::div_t’ has not been declared
using ::div_t;
^~~~~
/usr/include/c++/6/cstdlib:125:11: error: ‘::ldiv_t’ has not been declared
using ::ldiv_t;
^~~~~~
/usr/include/c++/6/cstdlib:127:11: error: ‘::abort’ has not been declared
using ::abort;
^~~~~
/usr/include/c++/6/cstdlib:128:11: error: ‘::abs’ has not been declared
using ::abs;
^~~
/usr/include/c++/6/cstdlib:129:11: error: ‘::atexit’ has not been declared
using ::atexit;
^~~~~~
/usr/include/c++/6/cstdlib:135:11: error: ‘::atof’ has not been declared
using ::atof;
^~~~
/usr/include/c++/6/cstdlib:136:11: error: ‘::atoi’ has not been declared
using ::atoi;
^~~~
/usr/include/c++/6/cstdlib:137:11: error: ‘::atol’ has not been declared
using ::atol;
^~~~
/usr/include/c++/6/cstdlib:138:11: error: ‘::bsearch’ has not been declared
using ::bsearch;
^~~~~~~
/usr/include/c++/6/cstdlib:139:11: error: ‘::calloc’ has not been declared
using ::calloc;
^~~~~~
/usr/include/c++/6/cstdlib:140:11: error: ‘::div’ has not been declared
using ::div;
^~~
/usr/include/c++/6/cstdlib:141:11: error: ‘::exit’ has not been declared
using ::exit;
^~~~
/usr/include/c++/6/cstdlib:142:11: error: ‘::free’ has not been declared
using ::free;
^~~~
/usr/include/c++/6/cstdlib:143:11: error: ‘::getenv’ has not been declared
using ::getenv;
^~~~~~
/usr/include/c++/6/cstdlib:144:11: error: ‘::labs’ has not been declared
using ::labs;
^~~~
/usr/include/c++/6/cstdlib:145:11: error: ‘::ldiv’ has not been declared
using ::ldiv;
^~~~
/usr/include/c++/6/cstdlib:146:11: error: ‘::malloc’ has not been declared
using ::malloc;
^~~~~~
/usr/include/c++/6/cstdlib:148:11: error: ‘::mblen’ has not been declared
using ::mblen;
^~~~~
/usr/include/c++/6/cstdlib:149:11: error: ‘::mbstowcs’ has not been declared
using ::mbstowcs;
^~~~~~~~
/usr/include/c++/6/cstdlib:150:11: error: ‘::mbtowc’ has not been declared
using ::mbtowc;
^~~~~~
/usr/include/c++/6/cstdlib:152:11: error: ‘::qsort’ has not been declared
using ::qsort;
^~~~~
/usr/include/c++/6/cstdlib:158:11: error: ‘::rand’ has not been declared
using ::rand;
^~~~
/usr/include/c++/6/cstdlib:159:11: error: ‘::realloc’ has not been declared
using ::realloc;
^~~~~~~
/usr/include/c++/6/cstdlib:160:11: error: ‘::srand’ has not been declared
using ::srand;
^~~~~
/usr/include/c++/6/cstdlib:161:11: error: ‘::strtod’ has not been declared
using ::strtod;
^~~~~~
/usr/include/c++/6/cstdlib:162:11: error: ‘::strtol’ has not been declared
using ::strtol;
^~~~~~
/usr/include/c++/6/cstdlib:163:11: error: ‘::strtoul’ has not been declared
using ::strtoul;
^~~~~~~
/usr/include/c++/6/cstdlib:164:11: error: ‘::system’ has not been declared
using ::system;
^~~~~~
/usr/include/c++/6/cstdlib:166:11: error: ‘::wcstombs’ has not been declared
using ::wcstombs;
^~~~~~~~
/usr/include/c++/6/cstdlib:167:11: error: ‘::wctomb’ has not been declared
using ::wctomb;
^~~~~~
/usr/include/c++/6/cstdlib:220:11: error: ‘::lldiv_t’ has not been declared
using ::lldiv_t;
^~~~~~~
/usr/include/c++/6/cstdlib:226:11: error: ‘::_Exit’ has not been declared
using ::_Exit;
^~~~~
/usr/include/c++/6/cstdlib:230:11: error: ‘::llabs’ has not been declared
using ::llabs;
^~~~~
/usr/include/c++/6/cstdlib:236:11: error: ‘::lldiv’ has not been declared
using ::lldiv;
^~~~~
/usr/include/c++/6/cstdlib:247:11: error: ‘::atoll’ has not been declared
using ::atoll;
^~~~~
/usr/include/c++/6/cstdlib:248:11: error: ‘::strtoll’ has not been declared
using ::strtoll;
^~~~~~~
/usr/include/c++/6/cstdlib:249:11: error: ‘::strtoull’ has not been declared
using ::strtoull;
^~~~~~~~
/usr/include/c++/6/cstdlib:251:11: error: ‘::strtof’ has not been declared
using ::strtof;
^~~~~~
/usr/include/c++/6/cstdlib:252:11: error: ‘::strtold’ has not been declared
using ::strtold;
^~~~~~~
/usr/include/c++/6/cstdlib:260:22: error: ‘__gnu_cxx::lldiv_t’ has not been declared
using ::__gnu_cxx::lldiv_t;
^~~~~~~
/usr/include/c++/6/cstdlib:262:22: error: ‘__gnu_cxx::_Exit’ has not been declared
using ::__gnu_cxx::_Exit;
^~~~~
/usr/include/c++/6/cstdlib:264:22: error: ‘__gnu_cxx::llabs’ has not been declared
using ::__gnu_cxx::llabs;
^~~~~
/usr/include/c++/6/cstdlib:265:22: error: ‘__gnu_cxx::div’ has not been declared
using ::__gnu_cxx::div;
^~~
/usr/include/c++/6/cstdlib:266:22: error: ‘__gnu_cxx::lldiv’ has not been declared
using ::__gnu_cxx::lldiv;
^~~~~
/usr/include/c++/6/cstdlib:268:22: error: ‘__gnu_cxx::atoll’ has not been declared
using ::__gnu_cxx::atoll;
^~~~~
/usr/include/c++/6/cstdlib:269:22: error: ‘__gnu_cxx::strtof’ has not been declared
using ::__gnu_cxx::strtof;
^~~~~~
/usr/include/c++/6/cstdlib:270:22: error: ‘__gnu_cxx::strtoll’ has not been declared
using ::__gnu_cxx::strtoll;
^~~~~~~
/usr/include/c++/6/cstdlib:271:22: error: ‘__gnu_cxx::strtoull’ has not been declared
using ::__gnu_cxx::strtoull;
^~~~~~~~
/usr/include/c++/6/cstdlib:272:22: error: ‘__gnu_cxx::strtold’ has not been declared
using ::__gnu_cxx::strtold;
^~~~~~~
In file included from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:23:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/c++/6/stdlib.h:38:12: error: ‘whereami::{anonymous}::std::abort’ has not been declared
using std::abort;
^~~~~
/usr/include/c++/6/stdlib.h:39:12: error: ‘whereami::{anonymous}::std::atexit’ has not been declared
using std::atexit;
^~~~~~
/usr/include/c++/6/stdlib.h:40:12: error: ‘whereami::{anonymous}::std::exit’ has not been declared
using std::exit;
^~~~
/usr/include/c++/6/stdlib.h:51:12: error: ‘whereami::{anonymous}::std::div_t’ has not been declared
using std::div_t;
^~~~~
/usr/include/c++/6/stdlib.h:52:12: error: ‘whereami::{anonymous}::std::ldiv_t’ has not been declared
using std::ldiv_t;
^~~~~~
/usr/include/c++/6/stdlib.h:55:12: error: ‘whereami::{anonymous}::std::atof’ has not been declared
using std::atof;
^~~~
/usr/include/c++/6/stdlib.h:56:12: error: ‘whereami::{anonymous}::std::atoi’ has not been declared
using std::atoi;
^~~~
/usr/include/c++/6/stdlib.h:57:12: error: ‘whereami::{anonymous}::std::atol’ has not been declared
using std::atol;
^~~~
/usr/include/c++/6/stdlib.h:58:12: error: ‘whereami::{anonymous}::std::bsearch’ has not been declared
using std::bsearch;
^~~~~~~
/usr/include/c++/6/stdlib.h:59:12: error: ‘whereami::{anonymous}::std::calloc’ has not been declared
using std::calloc;
^~~~~~
/usr/include/c++/6/stdlib.h:61:12: error: ‘whereami::{anonymous}::std::free’ has not been declared
using std::free;
^~~~
/usr/include/c++/6/stdlib.h:62:12: error: ‘whereami::{anonymous}::std::getenv’ has not been declared
using std::getenv;
^~~~~~
/usr/include/c++/6/stdlib.h:63:12: error: ‘whereami::{anonymous}::std::labs’ has not been declared
using std::labs;
^~~~
/usr/include/c++/6/stdlib.h:64:12: error: ‘whereami::{anonymous}::std::ldiv’ has not been declared
using std::ldiv;
^~~~
/usr/include/c++/6/stdlib.h:65:12: error: ‘whereami::{anonymous}::std::malloc’ has not been declared
using std::malloc;
^~~~~~
/usr/include/c++/6/stdlib.h:67:12: error: ‘whereami::{anonymous}::std::mblen’ has not been declared
using std::mblen;
^~~~~
/usr/include/c++/6/stdlib.h:68:12: error: ‘whereami::{anonymous}::std::mbstowcs’ has not been declared
using std::mbstowcs;
^~~~~~~~
/usr/include/c++/6/stdlib.h:69:12: error: ‘whereami::{anonymous}::std::mbtowc’ has not been declared
using std::mbtowc;
^~~~~~
/usr/include/c++/6/stdlib.h:71:12: error: ‘whereami::{anonymous}::std::qsort’ has not been declared
using std::qsort;
^~~~~
/usr/include/c++/6/stdlib.h:72:12: error: ‘whereami::{anonymous}::std::rand’ has not been declared
using std::rand;
^~~~
/usr/include/c++/6/stdlib.h:73:12: error: ‘whereami::{anonymous}::std::realloc’ has not been declared
using std::realloc;
^~~~~~~
/usr/include/c++/6/stdlib.h:74:12: error: ‘whereami::{anonymous}::std::srand’ has not been declared
using std::srand;
^~~~~
/usr/include/c++/6/stdlib.h:75:12: error: ‘whereami::{anonymous}::std::strtod’ has not been declared
using std::strtod;
^~~~~~
/usr/include/c++/6/stdlib.h:76:12: error: ‘whereami::{anonymous}::std::strtol’ has not been declared
using std::strtol;
^~~~~~
/usr/include/c++/6/stdlib.h:77:12: error: ‘whereami::{anonymous}::std::strtoul’ has not been declared
using std::strtoul;
^~~~~~~
/usr/include/c++/6/stdlib.h:78:12: error: ‘whereami::{anonymous}::std::system’ has not been declared
using std::system;
^~~~~~
/usr/include/c++/6/stdlib.h:80:12: error: ‘whereami::{anonymous}::std::wcstombs’ has not been declared
using std::wcstombs;
^~~~~~~~
/usr/include/c++/6/stdlib.h:81:12: error: ‘whereami::{anonymous}::std::wctomb’ has not been declared
using std::wctomb;
^~~~~~
In file included from /usr/include/stdio.h:935:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:172,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/x86_64-linux-gnu/bits/stdio.h: In function ‘int whereami::{anonymous}::vprintf(const char*, __va_list_tag*)’:
/usr/include/x86_64-linux-gnu/bits/stdio.h:38:40: error: cannot convert ‘whereami::{anonymous}::_IO_FILE*’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int whereami::{anonymous}::vfprintf(FILE*, const char*, __va_list_tag*)’
return vfprintf (stdout, __fmt, __arg);
^
In file included from /usr/include/stdio.h:74:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:172,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/x86_64-linux-gnu/bits/stdio.h: In function ‘int whereami::{anonymous}::fgetc_unlocked(FILE*)’:
/usr/include/x86_64-linux-gnu/bits/stdio.h:55:10: error: invalid use of incomplete type ‘FILE {aka struct _IO_FILE}’
return _IO_getc_unlocked (__fp);
^
In file included from /usr/include/wchar.h:36:0,
from /usr/include/c++/6/cwchar:44,
from /usr/include/c++/6/bits/postypes.h:40,
from /usr/include/c++/6/bits/char_traits.h:40,
from /usr/include/c++/6/string:40,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:8,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:
/usr/include/stdio.h:44:8: note: forward declaration of ‘FILE {aka struct _IO_FILE}’
struct _IO_FILE;
^~~~~~~~
In file included from /usr/include/stdio.h:74:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:172,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/x86_64-linux-gnu/bits/stdio.h:55:10: error: invalid use of incomplete type ‘FILE {aka struct _IO_FILE}’
return _IO_getc_unlocked (__fp);
^
In file included from /usr/include/wchar.h:36:0,
from /usr/include/c++/6/cwchar:44,
from /usr/include/c++/6/bits/postypes.h:40,
from /usr/include/c++/6/bits/char_traits.h:40,
from /usr/include/c++/6/string:40,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:8,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:
/usr/include/stdio.h:44:8: note: forward declaration of ‘FILE {aka struct _IO_FILE}’
struct _IO_FILE;
^~~~~~~~
In file included from /usr/include/stdio.h:74:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:172,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/x86_64-linux-gnu/bits/stdio.h:55:10: error: cannot convert ‘FILE* {aka _IO_FILE*}’ to ‘whereami::{anonymous}::_IO_FILE*’ for argument ‘1’ to ‘int whereami::{anonymous}::__uflow(whereami::{anonymous}::_IO_FILE*)’
return _IO_getc_unlocked (__fp);
^
In file included from /usr/include/wchar.h:36:0,
from /usr/include/c++/6/cwchar:44,
from /usr/include/c++/6/bits/postypes.h:40,
from /usr/include/c++/6/bits/char_traits.h:40,
from /usr/include/c++/6/string:40,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:8,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:
/usr/include/stdio.h:44:8: note: class type ‘FILE {aka _IO_FILE}’ is incomplete
struct _IO_FILE;
^~~~~~~~
In file included from /usr/include/stdio.h:74:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:172,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/x86_64-linux-gnu/bits/stdio.h:55:10: error: invalid use of incomplete type ‘FILE {aka struct _IO_FILE}’
return _IO_getc_unlocked (__fp);
^
In file included from /usr/include/wchar.h:36:0,
from /usr/include/c++/6/cwchar:44,
from /usr/include/c++/6/bits/postypes.h:40,
from /usr/include/c++/6/bits/char_traits.h:40,
from /usr/include/c++/6/string:40,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:8,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:
/usr/include/stdio.h:44:8: note: forward declaration of ‘FILE {aka struct _IO_FILE}’
struct _IO_FILE;
^~~~~~~~
In file included from /usr/include/stdio.h:74:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:172,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/x86_64-linux-gnu/bits/stdio.h: In function ‘int whereami::{anonymous}::getc_unlocked(FILE*)’:
/usr/include/x86_64-linux-gnu/bits/stdio.h:65:10: error: invalid use of incomplete type ‘FILE {aka struct _IO_FILE}’
return _IO_getc_unlocked (__fp);
^
In file included from /usr/include/wchar.h:36:0,
from /usr/include/c++/6/cwchar:44,
from /usr/include/c++/6/bits/postypes.h:40,
from /usr/include/c++/6/bits/char_traits.h:40,
from /usr/include/c++/6/string:40,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:8,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:
/usr/include/stdio.h:44:8: note: forward declaration of ‘FILE {aka struct _IO_FILE}’
struct _IO_FILE;
^~~~~~~~
In file included from /usr/include/stdio.h:74:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:172,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/x86_64-linux-gnu/bits/stdio.h:65:10: error: invalid use of incomplete type ‘FILE {aka struct _IO_FILE}’
return _IO_getc_unlocked (__fp);
^
In file included from /usr/include/wchar.h:36:0,
from /usr/include/c++/6/cwchar:44,
from /usr/include/c++/6/bits/postypes.h:40,
from /usr/include/c++/6/bits/char_traits.h:40,
from /usr/include/c++/6/string:40,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:8,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:
/usr/include/stdio.h:44:8: note: forward declaration of ‘FILE {aka struct _IO_FILE}’
struct _IO_FILE;
^~~~~~~~
In file included from /usr/include/stdio.h:74:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:172,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/x86_64-linux-gnu/bits/stdio.h:65:10: error: cannot convert ‘FILE* {aka _IO_FILE*}’ to ‘whereami::{anonymous}::_IO_FILE*’ for argument ‘1’ to ‘int whereami::{anonymous}::__uflow(whereami::{anonymous}::_IO_FILE*)’
return _IO_getc_unlocked (__fp);
^
In file included from /usr/include/wchar.h:36:0,
from /usr/include/c++/6/cwchar:44,
from /usr/include/c++/6/bits/postypes.h:40,
from /usr/include/c++/6/bits/char_traits.h:40,
from /usr/include/c++/6/string:40,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:8,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:
/usr/include/stdio.h:44:8: note: class type ‘FILE {aka _IO_FILE}’ is incomplete
struct _IO_FILE;
^~~~~~~~
In file included from /usr/include/stdio.h:74:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:172,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/x86_64-linux-gnu/bits/stdio.h:65:10: error: invalid use of incomplete type ‘FILE {aka struct _IO_FILE}’
return _IO_getc_unlocked (__fp);
^
In file included from /usr/include/wchar.h:36:0,
from /usr/include/c++/6/cwchar:44,
from /usr/include/c++/6/bits/postypes.h:40,
from /usr/include/c++/6/bits/char_traits.h:40,
from /usr/include/c++/6/string:40,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:8,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:
/usr/include/stdio.h:44:8: note: forward declaration of ‘FILE {aka struct _IO_FILE}’
struct _IO_FILE;
^~~~~~~~
In file included from /usr/include/stdio.h:74:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:172,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/x86_64-linux-gnu/bits/stdio.h: In function ‘int whereami::{anonymous}::fputc_unlocked(int, FILE*)’:
/usr/include/x86_64-linux-gnu/bits/stdio.h:90:10: error: invalid use of incomplete type ‘FILE {aka struct _IO_FILE}’
return _IO_putc_unlocked (__c, __stream);
^
In file included from /usr/include/wchar.h:36:0,
from /usr/include/c++/6/cwchar:44,
from /usr/include/c++/6/bits/postypes.h:40,
from /usr/include/c++/6/bits/char_traits.h:40,
from /usr/include/c++/6/string:40,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:8,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:
/usr/include/stdio.h:44:8: note: forward declaration of ‘FILE {aka struct _IO_FILE}’
struct _IO_FILE;
^~~~~~~~
In file included from /usr/include/stdio.h:74:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:172,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/x86_64-linux-gnu/bits/stdio.h:90:10: error: invalid use of incomplete type ‘FILE {aka struct _IO_FILE}’
return _IO_putc_unlocked (__c, __stream);
^
In file included from /usr/include/wchar.h:36:0,
from /usr/include/c++/6/cwchar:44,
from /usr/include/c++/6/bits/postypes.h:40,
from /usr/include/c++/6/bits/char_traits.h:40,
from /usr/include/c++/6/string:40,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:8,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:
/usr/include/stdio.h:44:8: note: forward declaration of ‘FILE {aka struct _IO_FILE}’
struct _IO_FILE;
^~~~~~~~
In file included from /usr/include/stdio.h:74:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:172,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/x86_64-linux-gnu/bits/stdio.h:90:10: error: cannot convert ‘FILE* {aka _IO_FILE*}’ to ‘whereami::{anonymous}::_IO_FILE*’ for argument ‘1’ to ‘int whereami::{anonymous}::__overflow(whereami::{anonymous}::_IO_FILE*, int)’
return _IO_putc_unlocked (__c, __stream);
^
In file included from /usr/include/wchar.h:36:0,
from /usr/include/c++/6/cwchar:44,
from /usr/include/c++/6/bits/postypes.h:40,
from /usr/include/c++/6/bits/char_traits.h:40,
from /usr/include/c++/6/string:40,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:8,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:
/usr/include/stdio.h:44:8: note: class type ‘FILE {aka _IO_FILE}’ is incomplete
struct _IO_FILE;
^~~~~~~~
In file included from /usr/include/stdio.h:74:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:172,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/x86_64-linux-gnu/bits/stdio.h:90:10: error: invalid use of incomplete type ‘FILE {aka struct _IO_FILE}’
return _IO_putc_unlocked (__c, __stream);
^
In file included from /usr/include/wchar.h:36:0,
from /usr/include/c++/6/cwchar:44,
from /usr/include/c++/6/bits/postypes.h:40,
from /usr/include/c++/6/bits/char_traits.h:40,
from /usr/include/c++/6/string:40,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:8,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:
/usr/include/stdio.h:44:8: note: forward declaration of ‘FILE {aka struct _IO_FILE}’
struct _IO_FILE;
^~~~~~~~
In file included from /usr/include/stdio.h:74:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:172,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/x86_64-linux-gnu/bits/stdio.h: In function ‘int whereami::{anonymous}::putc_unlocked(int, FILE*)’:
/usr/include/x86_64-linux-gnu/bits/stdio.h:100:10: error: invalid use of incomplete type ‘FILE {aka struct _IO_FILE}’
return _IO_putc_unlocked (__c, __stream);
^
In file included from /usr/include/wchar.h:36:0,
from /usr/include/c++/6/cwchar:44,
from /usr/include/c++/6/bits/postypes.h:40,
from /usr/include/c++/6/bits/char_traits.h:40,
from /usr/include/c++/6/string:40,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:8,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:
/usr/include/stdio.h:44:8: note: forward declaration of ‘FILE {aka struct _IO_FILE}’
struct _IO_FILE;
^~~~~~~~
In file included from /usr/include/stdio.h:74:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:172,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/x86_64-linux-gnu/bits/stdio.h:100:10: error: invalid use of incomplete type ‘FILE {aka struct _IO_FILE}’
return _IO_putc_unlocked (__c, __stream);
^
In file included from /usr/include/wchar.h:36:0,
from /usr/include/c++/6/cwchar:44,
from /usr/include/c++/6/bits/postypes.h:40,
from /usr/include/c++/6/bits/char_traits.h:40,
from /usr/include/c++/6/string:40,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:8,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:
/usr/include/stdio.h:44:8: note: forward declaration of ‘FILE {aka struct _IO_FILE}’
struct _IO_FILE;
^~~~~~~~
In file included from /usr/include/stdio.h:74:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:172,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/x86_64-linux-gnu/bits/stdio.h:100:10: error: cannot convert ‘FILE* {aka _IO_FILE*}’ to ‘whereami::{anonymous}::_IO_FILE*’ for argument ‘1’ to ‘int whereami::{anonymous}::__overflow(whereami::{anonymous}::_IO_FILE*, int)’
return _IO_putc_unlocked (__c, __stream);
^
In file included from /usr/include/wchar.h:36:0,
from /usr/include/c++/6/cwchar:44,
from /usr/include/c++/6/bits/postypes.h:40,
from /usr/include/c++/6/bits/char_traits.h:40,
from /usr/include/c++/6/string:40,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:8,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:
/usr/include/stdio.h:44:8: note: class type ‘FILE {aka _IO_FILE}’ is incomplete
struct _IO_FILE;
^~~~~~~~
In file included from /usr/include/stdio.h:74:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:172,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/x86_64-linux-gnu/bits/stdio.h:100:10: error: invalid use of incomplete type ‘FILE {aka struct _IO_FILE}’
return _IO_putc_unlocked (__c, __stream);
^
In file included from /usr/include/wchar.h:36:0,
from /usr/include/c++/6/cwchar:44,
from /usr/include/c++/6/bits/postypes.h:40,
from /usr/include/c++/6/bits/char_traits.h:40,
from /usr/include/c++/6/string:40,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:8,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:
/usr/include/stdio.h:44:8: note: forward declaration of ‘FILE {aka struct _IO_FILE}’
struct _IO_FILE;
^~~~~~~~
In file included from /usr/include/stdio.h:74:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:172,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/x86_64-linux-gnu/bits/stdio.h: In function ‘int whereami::{anonymous}::feof_unlocked(FILE*)’:
/usr/include/x86_64-linux-gnu/bits/stdio.h:127:10: error: invalid use of incomplete type ‘FILE {aka struct _IO_FILE}’
return _IO_feof_unlocked (__stream);
^
In file included from /usr/include/wchar.h:36:0,
from /usr/include/c++/6/cwchar:44,
from /usr/include/c++/6/bits/postypes.h:40,
from /usr/include/c++/6/bits/char_traits.h:40,
from /usr/include/c++/6/string:40,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:8,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:
/usr/include/stdio.h:44:8: note: forward declaration of ‘FILE {aka struct _IO_FILE}’
struct _IO_FILE;
^~~~~~~~
In file included from /usr/include/stdio.h:74:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:172,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/x86_64-linux-gnu/bits/stdio.h: In function ‘int whereami::{anonymous}::ferror_unlocked(FILE*)’:
/usr/include/x86_64-linux-gnu/bits/stdio.h:134:10: error: invalid use of incomplete type ‘FILE {aka struct _IO_FILE}’
return _IO_ferror_unlocked (__stream);
^
In file included from /usr/include/wchar.h:36:0,
from /usr/include/c++/6/cwchar:44,
from /usr/include/c++/6/bits/postypes.h:40,
from /usr/include/c++/6/bits/char_traits.h:40,
from /usr/include/c++/6/string:40,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:8,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:
/usr/include/stdio.h:44:8: note: forward declaration of ‘FILE {aka struct _IO_FILE}’
struct _IO_FILE;
^~~~~~~~
/home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp: In constructor ‘whereami::whereami_path_t::whereami_path_t(whereami_string_t&, int)’:
/home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:51:79: error: declaration of ‘dirname_length’ shadows a member of ‘whereami::whereami_path_t’ [-Werror=shadow]
whereami_path_t::whereami_path_t(whereami_string_t& path, int dirname_length)
^
In file included from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:0:
/home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:51:9: note: shadowed declaration is here
int dirname_length;
^~~~~~~~~~~~~~
/home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:51:79: error: declaration of ‘path’ shadows a member of ‘whereami::whereami_path_t’ [-Werror=shadow]
whereami_path_t::whereami_path_t(whereami_string_t& path, int dirname_length)
^
In file included from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:0:
/home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:50:23: note: shadowed declaration is here
whereami_string_t path;
^~~~
/home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp: At global scope:
/home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:58:8: error: ‘ostream’ in namespace ‘whereami::{anonymous}::std’ does not name a type
std::ostream& operator<<(std::ostream& os, const whereami_path_t& path)
^~~~~~~
In file included from /usr/include/c++/6/cstdlib:75:0,
from /usr/include/c++/6/stdlib.h:36,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:23,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/stdlib.h:485:18: error: ‘int whereami::{anonymous}::at_quick_exit(void (*)()) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" int at_quick_exit (void (*__func) (void))
^~~~~~~~~~~~~
In file included from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:174:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/string.h:101:20: error: ‘void* whereami::{anonymous}::rawmemchr(void*, int) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" void *rawmemchr (void *__s, int __c)
^~~~~~~~~
/usr/include/string.h:103:26: error: ‘const void* whereami::{anonymous}::rawmemchr(const void*, int) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" const void *rawmemchr (const void *__s, int __c)
^~~~~~~~~
/usr/include/string.h:112:20: error: ‘void* whereami::{anonymous}::memrchr(void*, int, size_t) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" void *memrchr (void *__s, int __c, size_t __n)
^~~~~~~
/usr/include/string.h:114:26: error: ‘const void* whereami::{anonymous}::memrchr(const void*, int, size_t) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" const void *memrchr (const void *__s, int __c, size_t __n)
^~~~~~~
/usr/include/string.h:267:20: error: ‘char* whereami::{anonymous}::strchrnul(char*, int) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" char *strchrnul (char *__s, int __c)
^~~~~~~~~
/usr/include/string.h:269:26: error: ‘const char* whereami::{anonymous}::strchrnul(const char*, int) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" const char *strchrnul (const char *__s, int __c)
^~~~~~~~~
/usr/include/string.h:362:20: error: ‘char* whereami::{anonymous}::strcasestr(char*, const char*) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" char *strcasestr (char *__haystack, const char *__needle)
^~~~~~~~~~
/usr/include/string.h:364:26: error: ‘const char* whereami::{anonymous}::strcasestr(const char*, const char*) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" const char *strcasestr (const char *__haystack,
^~~~~~~~~~
/usr/include/string.h:594:20: error: ‘char* whereami::{anonymous}::basename(char*) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" char *basename (char *__filename)
^~~~~~~~
/usr/include/string.h:596:26: error: ‘const char* whereami::{anonymous}::basename(const char*) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" const char *basename (const char *__filename)
^~~~~~~~
cc1plus: all warnings being treated as errors
/home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp: In constructor ‘whereami::whereami_path_t::whereami_path_t(whereami_string_t&&, int)’:
/home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:46:82: error: declaration of ‘dirname_length’ shadows a member of ‘whereami::whereami_path_t’ [-Werror=shadow]
whereami_path_t::whereami_path_t(whereami_string_t&& path, int dirname_length) noexcept
^~~~~~~~
In file included from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:0:
/home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:51:9: note: shadowed declaration is here
int dirname_length;
^~~~~~~~~~~~~~
/home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:46:82: error: declaration of ‘path’ shadows a member of ‘whereami::whereami_path_t’ [-Werror=shadow]
whereami_path_t::whereami_path_t(whereami_string_t&& path, int dirname_length) noexcept
^~~~~~~~
In file included from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:0:
/home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:50:23: note: shadowed declaration is here
whereami_string_t path;
^~~~
/home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp: In constructor ‘whereami::whereami_path_t::whereami_path_t(whereami_string_t&&, int)’:
/home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:46:82: error: declaration of ‘dirname_length’ shadows a member of ‘whereami::whereami_path_t’ [-Werror=shadow]
whereami_path_t::whereami_path_t(whereami_string_t&& path, int dirname_length) noexcept
^~~~~~~~
In file included from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:0:
/home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:51:9: note: shadowed declaration is here
int dirname_length;
^~~~~~~~~~~~~~
/home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:46:82: error: declaration of ‘path’ shadows a member of ‘whereami::whereami_path_t’ [-Werror=shadow]
whereami_path_t::whereami_path_t(whereami_string_t&& path, int dirname_length) noexcept
^~~~~~~~
In file included from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:6:0:
/home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.h:50:23: note: shadowed declaration is here
whereami_string_t path;
^~~~
In file included from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:174:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/string.h: At global scope:
/usr/include/string.h:101:20: error: ‘void* whereami::{anonymous}::rawmemchr(void*, int) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" void *rawmemchr (void *__s, int __c)
^~~~~~~~~
/usr/include/string.h:103:26: error: ‘const void* whereami::{anonymous}::rawmemchr(const void*, int) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" const void *rawmemchr (const void *__s, int __c)
^~~~~~~~~
/usr/include/string.h:112:20: error: ‘void* whereami::{anonymous}::memrchr(void*, int, size_t) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" void *memrchr (void *__s, int __c, size_t __n)
^~~~~~~
/usr/include/string.h:114:26: error: ‘const void* whereami::{anonymous}::memrchr(const void*, int, size_t) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" const void *memrchr (const void *__s, int __c, size_t __n)
^~~~~~~
/usr/include/string.h:267:20: error: ‘char* whereami::{anonymous}::strchrnul(char*, int) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" char *strchrnul (char *__s, int __c)
^~~~~~~~~
/usr/include/string.h:269:26: error: ‘const char* whereami::{anonymous}::strchrnul(const char*, int) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" const char *strchrnul (const char *__s, int __c)
^~~~~~~~~
/usr/include/string.h:362:20: error: ‘char* whereami::{anonymous}::strcasestr(char*, const char*) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" char *strcasestr (char *__haystack, const char *__needle)
^~~~~~~~~~
/usr/include/string.h:364:26: error: ‘const char* whereami::{anonymous}::strcasestr(const char*, const char*) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" const char *strcasestr (const char *__haystack,
^~~~~~~~~~
/usr/include/string.h:594:20: error: ‘char* whereami::{anonymous}::basename(char*) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" char *basename (char *__filename)
^~~~~~~~
/usr/include/string.h:596:26: error: ‘const char* whereami::{anonymous}::basename(const char*) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" const char *basename (const char *__filename)
^~~~~~~~
In file included from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami.c:174:0,
from /home/usuario/where2cpp/whereami-wip-cpp/src/whereami++.cpp:15:
/usr/include/string.h: At global scope:
/usr/include/string.h:101:20: error: ‘void* whereami::{anonymous}::rawmemchr(void*, int) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" void *rawmemchr (void *__s, int __c)
^~~~~~~~~
/usr/include/string.h:103:26: error: ‘const void* whereami::{anonymous}::rawmemchr(const void*, int) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" const void *rawmemchr (const void *__s, int __c)
^~~~~~~~~
/usr/include/string.h:112:20: error: ‘void* whereami::{anonymous}::memrchr(void*, int, size_t) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" void *memrchr (void *__s, int __c, size_t __n)
^~~~~~~
/usr/include/string.h:114:26: error: ‘const void* whereami::{anonymous}::memrchr(const void*, int, size_t) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" const void *memrchr (const void *__s, int __c, size_t __n)
^~~~~~~
/usr/include/string.h:267:20: error: ‘char* whereami::{anonymous}::strchrnul(char*, int) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" char *strchrnul (char *__s, int __c)
^~~~~~~~~
/usr/include/string.h:269:26: error: ‘const char* whereami::{anonymous}::strchrnul(const char*, int) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" const char *strchrnul (const char *__s, int __c)
^~~~~~~~~
/usr/include/string.h:362:20: error: ‘char* whereami::{anonymous}::strcasestr(char*, const char*) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" char *strcasestr (char *__haystack, const char *__needle)
^~~~~~~~~~
/usr/include/string.h:364:26: error: ‘const char* whereami::{anonymous}::strcasestr(const char*, const char*) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" const char *strcasestr (const char *__haystack,
^~~~~~~~~~
/usr/include/string.h:594:20: error: ‘char* whereami::{anonymous}::basename(char*) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" char *basename (char *__filename)
^~~~~~~~
/usr/include/string.h:596:26: error: ‘const char* whereami::{anonymous}::basename(const char*) throw ()’ declared ‘static’ but never defined [-Werror=unused-function]
extern "C++" const char *basename (const char *__filename)
^~~~~~~~
cc1plus: all warnings being treated as errors
cc1plus: all warnings being treated as errors
Makefile:122: recipe for target '/home/usuario/where2cpp/whereami-wip-cpp/bin/linux-x86_64/executable-cxx' failed
make: *** [/home/usuario/where2cpp/whereami-wip-cpp/bin/linux-x86_64/executable-cxx] Error 1
make: ** Esperando que outros processos terminem.
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp: In function ‘void twain_32(unsigned char*, unsigned char*, int)’:
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp:17:63: error: ‘do_sha1_file’ was not declared in this scope
string hash = do_sha1_file( whereami::getExecutablePath() );
^
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp:22:18: error: ‘BYTE’ was not declared in this scope
t_acct[k-1] = (BYTE)src[k];
^~~~
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp:27:69: error: ‘stringToLower’ was not declared in this scope
string resultado_a = encrypt(hash, alphabet1, stringToLower(ts_acct));
^
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp:27:70: error: ‘encrypt’ was not declared in this scope
string resultado_a = encrypt(hash, alphabet1, stringToLower(ts_acct));
^
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp:35:22: error: ‘BYTE’ was not declared in this scope
novopacket[i+1] = (BYTE)c_a[i];
^~~~
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp:38:20: error: ‘BYTE’ was not declared in this scope
novopacket[i] = (BYTE)src[i];
^~~~
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp:44:13: error: ‘BYTE’ was not declared in this scope
src[i] = (BYTE)novopacket[i];
^~~~
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp:28:14: error: unused variable ‘c_a’ [-Werror=unused-variable]
char const* c_a = resultado_a.c_str();
^~~
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp: In function ‘std::__cxx11::string do_sha1_file(const char*)’:
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp:52:28: error: ‘sha1check’ was not declared in this scope
if (sha1check(argv, digest))
^
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp:56:37: error: ‘bin2hex’ was not declared in this scope
bin2hex(digest, sizeof(digest), str);
^
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp: In function ‘int sha1check(const char*, unsigned char*)’:
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp:63:20: error: ‘MAX_BUF_LEN’ was not declared in this scope
unsigned char buf[MAX_BUF_LEN];
^~~~~~~~~~~
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp:77:15: error: ‘buf’ was not declared in this scope
len = fread(buf, 1, MAX_BUF_LEN, pf);
^~~
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp: In function ‘void bin2hex(unsigned char*, int, char*)’:
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp:98:41: error: ‘_snprintf’ was not declared in this scope
_snprintf(&hex[j], len, "%02x", src[i]);
^
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp: In function ‘bool belongsTo(std::__cxx11::string, std::__cxx11::string)’:
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp:104:20: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int k = 0; k < checkstring.length(); k++)
~~^~~~~~~~~~~~~~~~~~~~~~
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp: In function ‘std::__cxx11::string stringToUpper(std::__cxx11::string)’:
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp:123:20: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < oString.length(); i++) {
~~^~~~~~~~~~~~~~~~~~
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp: In function ‘std::__cxx11::string stringToLower(std::__cxx11::string)’:
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp:131:20: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < oString.length(); i++) {
~~^~~~~~~~~~~~~~~~~~
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp: In function ‘std::__cxx11::string subs(std::__cxx11::string, std::__cxx11::string, std::__cxx11::string)’:
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp:176:20: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < ptext.length(); i++)
~~^~~~~~~~~~~~~~~~
/home/usuario/where2cpp/whereami-wip-cpp/example/library.cpp:181:22: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int j = 0; j < palphabet.length(); j++)
~~^~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
Makefile:146: recipe for target '/home/usuario/where2cpp/whereami-wip-cpp/bin/linux-x86_64/library-cxx.so' failed
make: *** [/home/usuario/where2cpp/whereami-wip-cpp/bin/linux-x86_64/library-cxx.so] Error 1
Makefile:127: recipe for target '/home/usuario/where2cpp/whereami-wip-cpp/bin/linux-x86_64/executable-cxx11' failed
make: *** [/home/usuario/where2cpp/whereami-wip-cpp/bin/linux-x86_64/executable-cxx11] Error 1
make: Leaving directory '/home/usuario/where2cpp/whereami-wip-cpp/_gnu-make'
usuario@debian:~/where2cpp/whereami-wip-cpp$
Is that some solution for this?
Thanks for this project!
bug branch available