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

Compilation failure #1

Open
divija95 opened this issue Oct 19, 2020 · 1 comment
Open

Compilation failure #1

divija95 opened this issue Oct 19, 2020 · 1 comment

Comments

@divija95
Copy link

Command: ./compile.sh
Cleanup complete!
g++ -O3 -g -c src/harness.cpp -o harness.o
gcc -O3 -g -I ./include -Wl,--no-as-needed,-lprofiler,--as-needed -c src/Parser.c -o Parser.o -Wl,--no-as-needed,-lprofiler,--as-needed
gcc -O3 -g -I ./include -Wl,--no-as-needed,-lprofiler,--as-needed -c src/Optimizer.c -o Optimizer.o -Wl,--no-as-needed,-lprofiler,--as-needed
gcc -O3 -g -I ./include -Wl,--no-as-needed,-lprofiler,--as-needed -c src/Relation.c -o Relation.o -Wl,--no-as-needed,-lprofiler,--as-needed
In file included from /usr/include/c++/5/thread:35:0,
from src/harness.cpp:6:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support
^
src/harness.cpp:179:26: error: invalid suffix "s" on integer constant
this_thread::sleep_for(1s);
^
gcc -O3 -g -I ./include -Wl,--no-as-needed,-lprofiler,--as-needed -c src/Joiner.c -o Joiner.o -Wl,--no-as-needed,-lprofiler,--as-needed
src/harness.cpp: In function ‘int main(int, char**)’:
src/harness.cpp:105:22: error: ‘class std::vector<std::__cxx11::basic_string >’ has no member named ‘emplace_back’
result_chunk.emplace_back(move(result));
^
src/harness.cpp:105:46: error: ‘move’ was not declared in this scope
result_chunk.emplace_back(move(result));
^
src/harness.cpp:179:3: error: ‘this_thread’ has not been declared
this_thread::sleep_for(1s);

@divija95 divija95 reopened this Oct 19, 2020
@divija95
Copy link
Author

Still seeing this error after adding -std=c++11 arg
src/harness.cpp:179:26: error: invalid suffix "s" on integer constant
this_thread::sleep_for(1s);
^

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

1 participant