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

Enforcing the C++98 standard #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Enforcing the C++98 standard #14

wants to merge 1 commit into from

Conversation

lmagoncalo
Copy link

g++ -I. -I/home/lmagoncalo/Desktop/yices-1.0.40/include -Wall -O2 -c -o base/basic_types.o base/basic_types.cc
base/basic_types.cc:96:1: error: narrowing conversion of ‘18446744073709551615’ from ‘long unsigned int’ to ‘crest::value_t {aka long long int}’ inside { } [-Wnarrowing]
};
^
base/basic_types.cc:96:1: error: narrowing conversion of ‘18446744073709551615’ from ‘long long unsigned int’ to ‘crest::value_t {aka long long int}’ inside { } [-Wnarrowing]
: recipe for target 'base/basic_types.o' failed
make: *** [base/basic_types.o] Error 1

For the successful compilation of the source code it is needed to enforce the C++98 standard in gcc. This can be mabe by adding the -std=c++98 flag to the make file.

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

Successfully merging this pull request may close these issues.

1 participant