fix(build): include stdexcept in state source#2
Open
Defmc wants to merge 1 commit intoalan-j-hu:masterfrom
Open
fix(build): include stdexcept in state source#2Defmc wants to merge 1 commit intoalan-j-hu:masterfrom
stdexcept in state source#2Defmc wants to merge 1 commit intoalan-j-hu:masterfrom
Conversation
When compiling in Arch Linux with `make install`, G++ raises an error:
```
mkdir -p build
g++ -std=c++11 -c -o build/gen_json.o bootstrap/src/gen_json.cpp
g++ -std=c++11 -c -o build/grammar.o grammar/src/grammar.cpp
g++ -std=c++11 -c -o build/nonterminal.o grammar/src/nonterminal.cpp
g++ -std=c++11 -c -o build/token.o grammar/src/token.cpp
g++ -std=c++11 -c -o build/production.o grammar/src/production.cpp
g++ -std=c++11 -c -o build/table.o table/src/table.cpp
g++ -std=c++11 -c -o build/lr_table.o table/src/lr_table.cpp
g++ -std=c++11 -c -o build/lalr_table.o table/src/lalr_table.cpp
g++ -std=c++11 -c -o build/item_set.o table/src/item_set.cpp
g++ -std=c++11 -c -o build/item.o table/src/item.cpp
g++ -std=c++11 -c -o build/state.o table/src/state.cpp
table/src/state.cpp: In member function ‘void asparserations::table::State::add_transition(const asparserations::grammar::Symbol*, const asparserations::table::State*)’:
table/src/state.cpp:25:18: error: ‘runtime_error’ is not a member of ‘std’
25 | throw std::runtime_error("Bad cast from const Symbol* to const Token*");
| ^~~~~~~~~~~~~
table/src/state.cpp:31:18: error: ‘runtime_error’ is not a member of ‘std’
31 | throw std::runtime_error(
| ^~~~~~~~~~~~~
make: *** [Makefile:94: build/state.o] Error 1
```
The same occurs with `clang++`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When compiling in Arch Linux with
make install, G++ raises an error:The same occurs with
clang++.