[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ask about bison-3.0.5
From: |
Akim Demaille |
Subject: |
Re: ask about bison-3.0.5 |
Date: |
Sat, 23 Nov 2019 09:24:22 +0100 |
Hi!
> Le 22 nov. 2019 à 13:49, 马俊 <address@hidden> a écrit :
>
> Dear scientist,
> Here is a problem when I installed bison-3.0.5(./configure
> --prefix=/home/shenhf/majun/setup/bison-3.0.5 make&make check &make install)
> When I excute make check, it shows:
> ./c++.at:992: $CXX $CXXFLAGS $CPPFLAGS $LDFLAGS -o input input.cc $LIBS
> stderr:
> In file included from /usr/local/include/c++/8.3.0/ios:39,
> from /usr/local/include/c++/8.3.0/ostream:38,
> from /usr/local/include/c++/8.3.0/iostream:39,
> from input.yy:17:
> ./exception:1:1: error: stray '\177' in program
> ELF > Ü
> ^
> ./exception:1:5: error: stray '\2' in program
> ELF > Ü
> ^
> ./exception:1:6: error: stray '\1' in program
> ELF > Ü
> ^
> ./exception:1:7: error: stray '\1' in program
> ELF > Ü
> ^
> ./exception:1:17: error: stray '\2' in program
> ELF > Ü
> ^
Your problem appears to be that you have a file named 'exception' which is an
ELF executable, in your compiler's include path. It seems to be in the
directory of the test, which is weird. But the result is that the compiler
uses this file when it compiles "#include <exception>", instead of the "real"
'exception' file coming from your standard C++ library.
So find that file, and move it elsewhere.
Cheers!