Skip to content
This repository has been archived by the owner on Apr 20, 2019. It is now read-only.

use of undeclared identifiers 'CHAR_BIT' and 'ULLONG_MAX' #1

Closed
progval opened this issue Feb 12, 2015 · 0 comments
Closed

use of undeclared identifiers 'CHAR_BIT' and 'ULLONG_MAX' #1

progval opened this issue Feb 12, 2015 · 0 comments

Comments

@progval
Copy link

progval commented Feb 12, 2015

progval@ganymede:/tmp/BigCub(master)$ clang++ -Ofast -std=c++1y *.c++ -I.
In file included from bigcub.c++:7:
In file included from ./vmanip.h++:46:
./vmanip.t.h++:19:38: error: use of undeclared identifier 'CHAR_BIT'
        toReturn.resize((sizeof(n) * CHAR_BIT) + 1);
                                     ^
./vmanip.t.h++:22:37: error: use of undeclared identifier 'CHAR_BIT'
        toReturn.resize(sizeof(n) * CHAR_BIT);
                                    ^
./vmanip.t.h++:26:28: error: use of undeclared identifier 'CHAR_BIT'
    for (; i < sizeof(n) * CHAR_BIT; ++i) {
                           ^
./vmanip.t.h++:46:46: error: use of undeclared identifier 'CHAR_BIT'
    for (; (i < n.size()) && i < sizeof(T) * CHAR_BIT; ++i) {
                                             ^
./vmanip.t.h++:50:48: error: use of undeclared identifier 'CHAR_BIT'
    for (; n.back() == true && i < sizeof(T) * CHAR_BIT; ++i) {
                                               ^
5 errors generated.
In file included from tests.c++:16:
In file included from ./bigcub.h++:16:
In file included from ./vmanip.h++:46:
./vmanip.t.h++:19:38: error: use of undeclared identifier 'CHAR_BIT'
        toReturn.resize((sizeof(n) * CHAR_BIT) + 1);
                                     ^
./vmanip.t.h++:22:37: error: use of undeclared identifier 'CHAR_BIT'
        toReturn.resize(sizeof(n) * CHAR_BIT);
                                    ^
./vmanip.t.h++:26:28: error: use of undeclared identifier 'CHAR_BIT'
    for (; i < sizeof(n) * CHAR_BIT; ++i) {
                           ^
./vmanip.t.h++:46:46: error: use of undeclared identifier 'CHAR_BIT'
    for (; (i < n.size()) && i < sizeof(T) * CHAR_BIT; ++i) {
                                             ^
./vmanip.t.h++:50:48: error: use of undeclared identifier 'CHAR_BIT'
    for (; n.back() == true && i < sizeof(T) * CHAR_BIT; ++i) {
                                               ^
tests.c++:25:31: error: use of undeclared identifier 'ULLONG_MAX'
    for (uintmax_t i = 0; i < ULLONG_MAX; ++i) {
                              ^
tests.c++:177:40: error: use of undeclared identifier 'CHAR_BIT'
    for (size_t i = 0; i < sizeof(T) * CHAR_BIT; ++i) {
                                       ^
7 errors generated.
In file included from vmanip.c++:10:
In file included from ./vmanip.h++:46:
./vmanip.t.h++:19:38: error: use of undeclared identifier 'CHAR_BIT'
        toReturn.resize((sizeof(n) * CHAR_BIT) + 1);
                                     ^
./vmanip.t.h++:22:37: error: use of undeclared identifier 'CHAR_BIT'
        toReturn.resize(sizeof(n) * CHAR_BIT);
                                    ^
./vmanip.t.h++:26:28: error: use of undeclared identifier 'CHAR_BIT'
    for (; i < sizeof(n) * CHAR_BIT; ++i) {
                           ^
./vmanip.t.h++:46:46: error: use of undeclared identifier 'CHAR_BIT'
    for (; (i < n.size()) && i < sizeof(T) * CHAR_BIT; ++i) {
                                             ^
./vmanip.t.h++:50:48: error: use of undeclared identifier 'CHAR_BIT'
    for (; n.back() == true && i < sizeof(T) * CHAR_BIT; ++i) {
                                               ^
5 errors generated.
@progval progval changed the title error: use of undeclared identifier 'CHAR_BIT' use of undeclared identifiers 'CHAR_BIT' and 'ULLONG_MAX' Feb 12, 2015
@Cubox Cubox closed this as completed in 1f5cdbe Feb 12, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant