Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu error on make #18

Open
ghost opened this issue Feb 27, 2018 · 0 comments
Open

Ubuntu error on make #18

ghost opened this issue Feb 27, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 27, 2018

mkdir -p objs
mkdir -p unix_dist
g++ -O2 -D FB2TOEPUB_VERSION="Custom Linux Build" -Iinclude -o objs/scanner.o -c fb2toepub/scanner.cpp
scanner.cpp: In member function ‘Fb2ToEpub::LexScanner::Token Fb2ToEpub::ScannerImpl::ScanToken()’:
scanner.cpp:1024:9: error: no match for ‘operator=’ (operand types are ‘std::istream {aka std::basic_istream}’ and ‘std::istream* {aka std::basic_istream}’)
In file included from /usr/include/c++/5/iostream:40:0,
from scanner.cpp:95:
/usr/include/c++/5/istream:58:11: note: candidate: std::basic_istream& std::basic_istream::operator=(const std::basic_istream&)
class basic_istream : virtual public basic_ios<_CharT, _Traits>
^
/usr/include/c++/5/istream:58:11: note: no known conversion for argument 1 from ‘std::istream
{aka std::basic_istream}’ to ‘const std::basic_istream&’
scanner.cpp:1027:10: error: no match for ‘operator=’ (operand types are ‘std::ostream {aka std::basic_ostream}’ and ‘std::ostream
{aka std::basic_ostream}’)
In file included from /usr/include/c++/5/iostream:39:0,
from scanner.cpp:95:
/usr/include/c++/5/ostream:58:11: note: candidate: std::basic_ostream& std::basic_ostream::operator=(const std::basic_ostream&)
class basic_ostream : virtual public basic_ios<_CharT, _Traits>
^
/usr/include/c++/5/ostream:58:11: note: no known conversion for argument 1 from ‘std::ostream
{aka std::basic_ostream}’ to ‘const std::basic_ostream&’
scanner.cpp:1601:46: error: invalid user-defined conversion from ‘std::istream {aka std::basic_istream}’ to ‘std::istream
{aka std::basic_istream}’ [-fpermissive]
In file included from /usr/include/c++/5/ios:44:0,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from scanner.cpp:95:
/usr/include/c++/5/bits/basic_ios.h:120:7: note: candidate is: std::basic_ios<_CharT, _Traits>::operator void
() const [with _CharT = char; _Traits = std::char_traits]
operator void*() const
^
/usr/include/c++/5/bits/basic_ios.h:120:7: note: no known conversion from ‘void*’ to ‘std::istream* {aka std::basic_istream}’
In file included from /usr/include/c++/5/iostream:40:0,
from scanner.cpp:95:
/usr/include/c++/5/istream: In constructor ‘yyFlexLexer::yyFlexLexer(std::istream
, std::ostream*)’:
/usr/include/c++/5/istream:606:7: error: ‘std::basic_istream<_CharT, _Traits>::basic_istream() [with _CharT = char; _Traits = std::char_traits]’ is protected
basic_istream()
^
scanner.cpp:1712:75: error: within this context
In file included from /usr/include/c++/5/iostream:39:0,
from scanner.cpp:95:
/usr/include/c++/5/ostream:384:7: error: ‘std::basic_ostream<_CharT, _Traits>::basic_ostream() [with _CharT = char; _Traits = std::char_traits]’ is protected
basic_ostream()
^
scanner.cpp:1712:75: error: within this context
scanner.cpp:1714:7: error: no match for ‘operator=’ (operand types are ‘std::istream {aka std::basic_istream}’ and ‘std::istream* {aka std::basic_istream}’)
In file included from /usr/include/c++/5/iostream:40:0,
from scanner.cpp:95:
/usr/include/c++/5/istream:58:11: note: candidate: std::basic_istream& std::basic_istream::operator=(const std::basic_istream&)
class basic_istream : virtual public basic_ios<_CharT, _Traits>
^
/usr/include/c++/5/istream:58:11: note: no known conversion for argument 1 from ‘std::istream
{aka std::basic_istream}’ to ‘const std::basic_istream&’
scanner.cpp:1715:8: error: no match for ‘operator=’ (operand types are ‘std::ostream {aka std::basic_ostream}’ and ‘std::ostream
{aka std::basic_ostream}’)
In file included from /usr/include/c++/5/iostream:39:0,
from scanner.cpp:95:
/usr/include/c++/5/ostream:58:11: note: candidate: std::basic_ostream& std::basic_ostream::operator=(const std::basic_ostream&)
class basic_ostream : virtual public basic_ios<_CharT, _Traits>
^
/usr/include/c++/5/ostream:58:11: note: no known conversion for argument 1 from ‘std::ostream
{aka std::basic_ostream}’ to ‘const std::basic_ostream&’
scanner.cpp: In member function ‘virtual void yyFlexLexer::switch_streams(std::istream
, std::ostream*)’:
scanner.cpp:1761:9: error: no match for ‘operator=’ (operand types are ‘std::ostream {aka std::basic_ostream}’ and ‘std::ostream* {aka std::basic_ostream}’)
In file included from /usr/include/c++/5/iostream:39:0,
from scanner.cpp:95:
/usr/include/c++/5/ostream:58:11: note: candidate: std::basic_ostream& std::basic_ostream::operator=(const std::basic_ostream&)
class basic_ostream : virtual public basic_ios<_CharT, _Traits>
^
/usr/include/c++/5/ostream:58:11: note: no known conversion for argument 1 from ‘std::ostream
{aka std::basic_ostream}’ to ‘const std::basic_ostream&’
scanner.cpp: In member function ‘virtual int yyFlexLexer::LexerInput(char
, int)’:
scanner.cpp:1770:11: error: base operand of ‘->’ has non-pointer type ‘std::istream {aka std::basic_istream}’
scanner.cpp:1770:26: error: base operand of ‘->’ has non-pointer type ‘std::istream {aka std::basic_istream}’
scanner.cpp:1785:13: error: base operand of ‘->’ has non-pointer type ‘std::istream {aka std::basic_istream}’
scanner.cpp:1787:11: error: base operand of ‘->’ has non-pointer type ‘std::istream {aka std::basic_istream}’
scanner.cpp:1790:14: error: base operand of ‘->’ has non-pointer type ‘std::istream {aka std::basic_istream}’
scanner.cpp: In member function ‘virtual void yyFlexLexer::LexerOutput(const char*, int)’:
scanner.cpp:1796:14: error: base operand of ‘->’ has non-pointer type ‘std::ostream {aka std::basic_ostream}’
scanner.cpp: In member function ‘virtual void yyFlexLexer::yyrestart(std::istream*)’:
scanner.cpp:2113:48: error: no matching function for call to ‘yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*&)’
In file included from scanner.cpp:312:0:
/usr/include/FlexLexer.h:160:7: note: candidate: void yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream&)
void yy_init_buffer( struct yy_buffer_state* b, FLEX_STD istream& s );
^
/usr/include/FlexLexer.h:160:7: note: no known conversion for argument 2 from ‘std::istream* {aka std::basic_istream}’ to ‘std::istream& {aka std::basic_istream&}’
scanner.cpp: In member function ‘void yyFlexLexer::yy_load_buffer_state()’:
scanner.cpp:2156:7: error: no match for ‘operator=’ (operand types are ‘std::istream {aka std::basic_istream}’ and ‘std::istream
{aka std::basic_istream}’)
In file included from /usr/include/c++/5/iostream:40:0,
from scanner.cpp:95:
/usr/include/c++/5/istream:58:11: note: candidate: std::basic_istream& std::basic_istream::operator=(const std::basic_istream&)
class basic_istream : virtual public basic_ios<_CharT, _Traits>
^
/usr/include/c++/5/istream:58:11: note: no known conversion for argument 1 from ‘std::istream
{aka std::basic_istream}’ to ‘const std::basic_istream&’
scanner.cpp: In member function ‘virtual yy_buffer_state
yyFlexLexer::yy_create_buffer(std::istream*, int)’:
scanner.cpp:2185:26: error: no matching function for call to ‘yyFlexLexer::yy_init_buffer(yy_buffer_state*&, std::istream*&)’
In file included from scanner.cpp:312:0:
/usr/include/FlexLexer.h:160:7: note: candidate: void yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream&)
void yy_init_buffer( struct yy_buffer_state* b, FLEX_STD istream& s );
^
/usr/include/FlexLexer.h:160:7: note: no known conversion for argument 2 from ‘std::istream* {aka std::basic_istream}’ to ‘std::istream& {aka std::basic_istream&}’
scanner.cpp: At global scope:
scanner.cpp:23:25: error: prototype for ‘void yyFlexLexer::yy_init_buffer(YY_BUFFER_STATE, std::istream
)’ does not match any in class ‘yyFlexLexer’
scanner.cpp:2213:10: note: in expansion of macro ‘yyFlexLexer’
In file included from scanner.cpp:312:0:
/usr/include/FlexLexer.h:160:7: error: candidate is: void yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream&)
void yy_init_buffer( struct yy_buffer_state* b, FLEX_STD istream& s );
^
Makefile:84: ошибка выполнения рецепта для цели «objs/scanner.o»
make: *** [objs/scanner.o] Ошибка 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants